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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x539e70
sub esp, 0x68
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x539850
movzx ecx, byte [eax + 0x4c]
test cl, cl
je 0x539e1e
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
xor ebx, ebx
xor ebp, ebp
jmp 0x539861
inc ebx
lea ebp, [ebp + esi + 1]
cmp ebx, ecx
jge 0x5398c9
lea esi, [edx + ebx*8]
mov esi, dword [esi + 4]
test esi, esi
je 0x539877
cmp esi, 0xff
jle 0x53985c
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x7db370]
test eax, eax
jne 0x5398bc
lea eax, [0x624ba1]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x624ba1]
call fcn.0044b680
jmp 0x5398a2
cmp ebp, 0xffff
jg 0x539dcc
movzx ecx, word [eax + 0x8a]
test cx, cx
jne 0x5398e6
mov ecx, 0x303
mov word [esp + 0x20], cx
lea eax, [0x5dfee0]
mov dword [esp], eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0x20
call fcn.00437b80
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x40]
mov esi, dword [ebx + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0053e2c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x94]
mov ebp, dword [edx + 0x90]
mov esi, dword [edx + 0x8c]
test ebp, ebp
jne 0x539973
mov ebx, dword [0x7c4920]
mov ebp, dword [0x7c491c]
mov esi, dword [0x7c4918]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x64], esi
mov eax, dword [edx + 0x34]
mov dword [esp + 0x40], eax
lea ecx, [0x60f9a0]
mov dword [esp], ecx
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
movzx ecx, word [esp + 0x20]
mov word [eax + 0xc], cx
lea ecx, [0x5d7b40]
mov dword [esp], ecx
call fcn.00409a30
mov eax, dword [esp + 4]
movzx ecx, byte [0x65de65]
mov byte [eax], cl
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x38], 1
mov dword [ecx + 0x3c], 1
mov edx, dword [0x7db370]
test edx, edx
jne 0x539dbf
mov dword [ecx + 0x34], eax
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x18], edx
mov edx, dword [0x7db370]
test edx, edx
jne 0x539dae
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x10], edx
mov word [ecx + 0x4c], 0x101
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x48], edx
mov edx, dword [0x7db370]
test edx, edx
jne 0x539d9d
mov edx, dword [esp + 0x58]
mov dword [ecx + 0x44], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x54], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x58], edx
mov edx, dword [0x7db370]
test edx, edx
jne 0x539d8c
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x50], eax
lea eax, [0x5d7b40]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
movzx ecx, byte [0x65de66]
mov byte [eax], cl
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x60], 1
mov dword [ecx + 0x64], 1
mov edx, dword [0x7db370]
test edx, edx
jne 0x539d7f
mov dword [ecx + 0x5c], eax
mov edx, dword [esp + 0x40]
test edx, edx
setg dl
mov byte [ecx + 0x40], dl
mov byte [ecx + 0x90], 1
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x38]
mov ebp, dword [edx + 0x34]
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x98], ebp
mov dword [ecx + 0x9c], ebx
mov ebx, dword [0x7db370]
test ebx, ebx
jne 0x539d6f
mov dword [ecx + 0x94], eax
mov dword [esp], edx
call fcn.00533a30
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x50], ecx
lea edx, [0x5dfe20]
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.00437b80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov eax, dword [0x7db370]
lea edi, [ebx + 0x28]
test eax, eax
jne 0x539d63
mov dword [ebx + 0x28], ecx
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
xor edx, edx
jmp 0x539b9c
inc eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
cmp eax, esi
jge 0x539b85
mov ecx, dword [edi + eax*4]
movzx edx, word [ecx]
cmp dx, bp
jne 0x539b31
movzx edx, word [ebx + 0xc]
cmp dx, 0x303
jae 0x539b6b
mov ecx, dword [ecx + 0x14]
test ecx, 4
jne 0x539b31
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 1]
mov edx, dword [ebx + 0x28]
mov esi, dword [ebx + 0x30]
cmp ecx, esi
jg 0x539bcb
lea ecx, [eax + 1]
mov dword [ebx + 0x2c], ecx
mov word [edx + eax*2], bp
mov ebp, dword [esp + 0x3c]
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
mov eax, ebp
mov ecx, esi
mov edi, dword [esp + 0x60]
cmp edx, ecx
jge 0x539c27
mov dword [esp + 0x3c], edx
movzx ebp, word [eax + edx*2]
mov esi, dword [0x7c48fc]
mov edi, dword [0x7c48f8]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
jmp 0x539b42
mov word [esp + 0x22], bp
lea ebx, [0x5dfe20]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.00437c50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x30], edx
mov edx, dword [0x7db370]
test edx, edx
jne 0x539c1c
mov dword [ebx + 0x28], eax
movzx ebp, word [esp + 0x22]
mov edx, eax
mov eax, ecx
jmp 0x539b7b
mov edi, dword [esp + 0x60]
call fcn.0044b680
jmp 0x539c0e
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
je 0x539d52
mov edx, dword [ebx + 0x14]
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebx + 0x18]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045d9a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x539cbe
mov ecx, dword [esp + 0x54]
movzx edx, word [ecx + 0xc]
cmp dx, 0x303
jb 0x539c9c
mov eax, dword [0x7c4958]
mov edx, dword [0x7c495c]
mov ebx, dword [0x7c4960]
mov dword [ecx + 0x7c], edx
mov dword [ecx + 0x80], ebx
mov edx, dword [0x7db370]
test edx, edx
jne 0x539cb4
mov dword [ecx + 0x78], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
lea edi, [ecx + 0x78]
call fcn.0044b680
jmp 0x539c9c
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x623ede]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0043ade0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
lea edx, [0x5ea220]
mov dword [esp], edx
call fcn.00409a30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [0x7db370]
test eax, eax
jne 0x539d47
mov eax, dword [esp + 0x4c]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
mov eax, dword [esp + 0x4c]
call fcn.0044b680
jmp 0x539d2d
mov ecx, dword [0x7c946c]
mov eax, dword [0x7c9468]
jmp 0x539c38
mov eax, ecx
call fcn.0044b680
jmp 0x539b21
lea edi, [ecx + 0x94]
call fcn.0044b680
jmp 0x539ac9
lea edi, [ecx + 0x5c]
call fcn.0044b680
jmp 0x539a89
lea edi, [ecx + 0x50]
mov eax, dword [esp + 0x64]
call fcn.0044b680
jmp 0x539a4b
lea edi, [ecx + 0x44]
mov eax, dword [esp + 0x58]
call fcn.0044b680
jmp 0x539a28
lea edi, [ecx + 0x10]
mov eax, dword [esp + 0x5c]
call fcn.0044b680
jmp 0x539a06
lea edi, [ecx + 0x34]
call fcn.0044b680
jmp 0x5399e3
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov eax, dword [0x7db370]
test eax, eax
jne 0x539e11
lea eax, [0x625cf0]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x625cf0]
call fcn.0044b680
jmp 0x539df7
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x50
mov eax, dword [0x7db370]
test eax, eax
jne 0x539e63
lea eax, [0x62d1fe]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x68
ret
lea eax, [0x62d1fe]
call fcn.0044b680
jmp 0x539e49
call fcn.00449f20
jmp fcn.00539820