Function at 0x542d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x5438fb
sub esp, 0x98
mov eax, dword [esp + 0xac]
cmp eax, 3
jge 0x54375a
jge 0x543579
cmp eax, 2
jne 0x54356a
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x5434f2
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x5434e9
mov ebx, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x40], edx
lea eax, [0x831cc0]
mov dword [esp], eax
call fcn.00409d90
mov eax, dword [esp + 4]
lea ecx, [0x553440]
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 8], ecx
mov edx, dword [0xc6f140]
test edx, edx
jne 0x5434ca
mov edx, dword [esp + 0xa8]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x34]
mov dword [eax + 0xc], ebx
mov ebp, dword [esp + 0x40]
test ebp, ebp
jne 0x54323b
lea edi, [esp + 0x70]
lea esi, [0x923610]
call fcn.0044ce3e
mov eax, dword [esp + 0xac]
cmp eax, 3
jge 0x54307e
jge 0x542f66
cmp eax, 2
jne 0x542f61
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x542f38
lea eax, [0x836180]
mov dword [esp], eax
call fcn.00409d90
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov eax, dword [0xc6f140]
test eax, eax
jne 0x542f2c
mov dword [edi], edx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x542f19
mov dword [edi + 0xc], eax
lea eax, [0x9240b0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], edi
lea ecx, [0x7f6a60]
mov dword [esp], ecx
call fcn.00409d90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x542f07
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 1
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
add esp, 0x98
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0044c860
mov eax, ecx
jmp 0x542ecd
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.0044c860
mov edi, edx
jmp 0x542e96
mov eax, edx
call fcn.0044c860
jmp 0x542e77
cmp eax, 3
jne 0x543899
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x543899
movzx ecx, byte [edx + 2]
cmp cl, 0x34
je 0x542e43
jmp 0x543899
cmp eax, 3
jmp 0x542f3b
je 0x54302b
jne 0x542f8c
movzx ecx, word [edx]
cmp cx, 0x7069
jne 0x543023
movzx ecx, byte [edx + 2]
cmp cl, 0x36
je 0x542e43
cmp eax, 3
jne 0x543899
movzx ecx, word [edx]
cmp cx, 0x6374
jne 0x543899
movzx ecx, byte [edx + 2]
cmp cl, 0x70
jne 0x543899
lea eax, [0x846140]
mov dword [esp], eax
call fcn.00409d90
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov eax, dword [0xc6f140]
test eax, eax
jne 0x54301a
mov dword [edi], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x54300a
mov dword [edi + 0x10], eax
lea eax, [0x9240f0]
jmp 0x542e9c
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.0044c860
mov edi, edx
jmp 0x542fff
mov eax, ecx
call fcn.0044c860
jmp 0x542fdd
cmp eax, 3
jmp 0x542f8c
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x896e13]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x543064
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
jmp 0x542e2c
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x542f6c
je 0x5431e4
cmp eax, 4
jge 0x543149
cmp eax, 3
jne 0x543144
movzx ecx, word [edx]
cmp cx, 0x6475
jne 0x54313f
movzx ecx, byte [edx + 2]
cmp cl, 0x70
jne 0x543123
lea eax, [0x8461c0]
mov dword [esp], eax
call fcn.00409d90
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov eax, dword [0xc6f140]
test eax, eax
jne 0x54311a
mov dword [edi], edx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xc6f140]
test ecx, ecx
jne 0x54310a
mov dword [edi + 0x10], eax
lea eax, [0x924110]
jmp 0x542e9c
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.0044c860
mov edi, edx
jmp 0x5430ff
mov eax, edx
call fcn.0044c860
jmp 0x5430dd
cmp eax, 4
jne 0x543899
mov ecx, dword [edx]
cmp ecx, 0x34706374
je 0x542fad
jmp 0x543899
cmp eax, 4
jmp 0x543126
cmp eax, 4
jmp 0x543126
je 0x54318a
jne 0x54315e
mov ecx, dword [edx]
cmp ecx, 0x36706374
je 0x542fad
cmp eax, 4
jne 0x543171
mov ecx, dword [edx]
cmp ecx, 0x34706475
je 0x5430ad
cmp eax, 4
jne 0x543899
mov ecx, dword [edx]
cmp ecx, 0x36706475
je 0x5430ad
jmp 0x543899
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x897577]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 4
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5431ca
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x543090
mov eax, dword [esp + 0xac]
cmp eax, 4
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x54314b
mov dword [esp], edx
mov dword [esp + 4], eax
lea ecx, [0x896e8b]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x543224
mov eax, dword [esp + 0xac]
cmp eax, 3
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x542e26
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
jmp 0x543084
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.00544a90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x543494
cmp ebp, 1
je 0x543358
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x54334f
mov edx, dword [esp + 0xa8]
movzx esi, byte [edx + ecx - 1]
xchg esi, eax
cmp al, 0x34
xchg esi, eax
jne 0x543343
test ecx, ecx
lea esi, [0x8bf570]
je 0x54333f
movzx ecx, byte [edx + ecx - 1]
cmp cl, 0x36
jne 0x54333f
lea ecx, [0x8bf574]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.005421a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ecx
add esp, 0x98
ret
mov ecx, esi
jmp 0x5432d5
test ecx, ecx
mov esi, 0
jmp 0x5432c3
mov edx, dword [esp + 0xa8]
jmp 0x543345
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [0xc5524c]
mov edx, dword [0xc55248]
mov ebx, dword [0xc55250]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.0053e5a0
movzx eax, byte [esp + 0x18]
test al, al
je 0x543483
lea edi, [esp + 0x84]
xor eax, eax
call fcn.0044c95b
mov ecx, dword [0xc5cbe0]
mov edx, dword [0xc5cbe4]
mov ebx, dword [0xc5cbe8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x3c]
cmp edx, ebx
jg 0x543449
mov eax, dword [esp + 0x50]
lea ecx, [ecx + ecx*4]
mov ebp, dword [0xc6f140]
lea edi, [eax + ecx*4]
test ebp, ebp
jne 0x543412
lea esi, [esp + 0x84]
call fcn.0044ce3e
mov ebp, edx
jmp 0x543295
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebx
lea eax, [0x836180]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.0040f790
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x54340b
lea eax, [0x836180]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438c30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x38]
jmp 0x5433ef
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
jmp 0x543295
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], ecx
add esp, 0x98
ret
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0xa8]
call fcn.0044c860
mov eax, edx
mov edx, dword [esp + 0xa8]
jmp 0x542df4
xor edx, edx
xor ebx, ebx
jmp 0x542daa
cmp eax, 3
jne 0x54350e
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x54350e
movzx edx, byte [ecx + 2]
cmp dl, 0x34
je 0x542d94
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [0x923010]
mov dword [esp], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
call fcn.00407870
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
add esp, 0x98
ret
cmp eax, 3
mov ecx, dword [esp + 0xa8]
jmp 0x5434f5
je 0x543712
jne 0x543706
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x7069
jne 0x5436fe
movzx edx, byte [ecx + 2]
cmp dl, 0x36
je 0x542d94
cmp eax, 3
jne 0x54350e
movzx edx, word [ecx]
cmp dx, 0x6374
jne 0x54350e
movzx edx, byte [ecx + 2]
cmp dl, 0x70
jne 0x54350e
mov edx, dword [esp + 0xb4]
test edx, edx
jne 0x5435e7
xor edx, edx
xor ebx, ebx
xor ebp, ebp
mov esi, ebp
mov ebp, edx
mov edx, esi
jmp 0x542dac
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005424d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test ebp, ebp
jne 0x5436c8
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ebx
mov edx, dword [esp + 0x9c]
mov dword [esp], edx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xa4]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xa8]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
call fcn.00545470
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test ecx, ecx
jne 0x543692
mov ecx, dword [esp + 0xa8]
mov edx, eax
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0xac]
jmp 0x5435dc
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
add esp, 0x98
ret
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], esi
add esp, 0x98
ret
cmp eax, 3
jmp 0x5435aa
mov ecx, dword [esp + 0xa8]
jmp 0x5435aa
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x896e13]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x54374b
mov eax, dword [esp + 0xac]
jmp 0x542d76
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x54357f
je 0x543851
cmp eax, 4
jge 0x5437b5
cmp eax, 3
jne 0x5437a9
mov ecx, dword [esp + 0xa8]
movzx edx, word [ecx]
cmp dx, 0x6475
jne 0x5437a4
movzx edx, byte [ecx + 2]
cmp dl, 0x70
je 0x5435cb
cmp eax, 4
jne 0x54350e
mov edx, dword [ecx]
cmp edx, 0x34706374
je 0x5435cb
jmp 0x54350e
cmp eax, 4
jmp 0x54378b
cmp eax, 4
mov ecx, dword [esp + 0xa8]
jmp 0x54378b
je 0x543806
jne 0x5437fd
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
cmp edx, 0x36706374
je 0x5435cb
cmp eax, 4
jne 0x5437e4
mov edx, dword [ecx]
cmp edx, 0x34706475
je 0x5435cb
cmp eax, 4
jne 0x54350e
mov edx, dword [ecx]
cmp edx, 0x36706475
je 0x5435cb
jmp 0x54350e
mov ecx, dword [esp + 0xa8]
jmp 0x5437d1
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x897577]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 4
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x543842
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x543768
mov eax, dword [esp + 0xac]
cmp eax, 4
jmp 0x5437b7
mov ecx, dword [esp + 0xa8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x896e8b]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 3
call fcn.004020a0
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x54388d
mov eax, dword [esp + 0xac]
cmp eax, 3
jmp 0x542d70
mov eax, dword [esp + 0xac]
jmp 0x543760
mov dword [esp], 0
lea ecx, [0x8a1a26]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
call fcn.0043bdd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
lea eax, [0x80a3e0]
mov dword [esp], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
call fcn.00407520
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427650
ud2
call fcn.0044b100
jmp fcn.00542d40