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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov ebp, dword [eax]
mov dword [esp + 0x20], ebp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x539c44
cmp dword [ebp + 0x74], esi
jne 0x539c39
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x539c39
mov byte [ebp + 0x17], 1
push ebp
call fcn.005137c0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, eax
test eax, eax
je 0x53a3ec
push edi
cmp byte [ebx + 0x60], 0
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], edx
je 0x539c6b
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x539d54
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x539c79
mov ecx, dword [eax]
jmp 0x539c7b
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x539d54
lea esp, [esp]
cmp edi, 1
jne 0x539ce8
cmp dword [edx + 0x20], str.nth_value
jne 0x539ce8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
inc eax
inc edx
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x539ccd
push eax
push edx
push dword [esp + 0x24]
push 0x5d
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539d3f
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
inc edx
jmp 0x539d28
mov eax, dword [esp + 0x34]
mov edx, dword [ebx + 0x50]
add eax, edi
mov ecx, dword [esi + 0x74]
add edx, edi
cmp dword [esi + 0x78], ecx
jg 0x539d0e
push eax
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539d3f
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
add edx, edi
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4], 0x5d
mov ecx, dword [esp + 0x18]
inc edi
mov edx, dword [esp + 0x14]
cmp edi, ecx
jl 0x539c90
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x58], 0
jne 0x539fee
test dword [edx + 4], 0x1000
je 0x539fee
cmp byte [ebx + 0x11], 0x5a
je 0x539fee
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x78], edi
jg 0x539da1
push 0
push 0
push eax
push 0x32
push esi
call fcn.004c7840
mov edx, dword [esp + 0x48]
add esp, 0x14
mov edi, eax
jmp 0x539dd4
mov edx, dword [esp + 0x34]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
jne 0x539f3c
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x539dfd
push 0
push 1
push edx
push 0x55
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539e30
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x539e4f
push 0
push edx
push dword [esp + 0x3c]
push 0x50
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539e82
mov ebp, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
lea eax, [edx + 2]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x539ea5
push eax
push 2
push edx
push 0x60
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539ed8
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi + 0x74]
add edx, 2
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x78], ecx
jg 0x539f04
push 0
push edx
push eax
push 0x89
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539fca
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x539fca
push 1
push edx
push 0
push dword [ebx + 0x3c]
push 0x19
push esi
call fcn.00512ed0
mov ecx, dword [esi + 0x74]
add esp, 0x18
mov edx, dword [ebx + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x539f6f
push 0
push 0
push edx
push 0x81
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x539fa2
mov ebp, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [edx - 2]
test ecx, ecx
jns 0x539faf
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x539fbe
mov eax, 0x610b1c
jmp 0x539fc7
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test edi, edi
jns 0x539fd4
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x539fe6
mov eax, 0x610b1c
jmp 0x53a3dd
lea ecx, [edi + edi*4]
jmp 0x53a3d7
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x53a04b
sub edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x53a017
push 0
push 1
push edx
push 0x55
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x53a3e0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x55
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x53a3e0
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x10], 0x49bd30
je 0x53a3e0
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x28], eax
je 0x53a141
mov al, byte [ebp + 0x13]
test al, al
jne 0x53a07a
inc dword [ebp + 0x2c]
mov edi, dword [ebp + 0x2c]
jmp 0x53a089
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov edi, dword [ebp + eax*4 + 0x98]
mov edx, dword [ebx + 0x50]
add edx, ecx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x53a0a9
push edi
push edx
push dword [esp + 0x34]
push 0x5d
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x53a0d8
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
mov dword [esp + 0x1c], edx
cmp dword [esi + 0x78], edx
jg 0x53a0fa
push 1
push 0
push edi
push 0x14
push esi
call fcn.004c7840
add esp, 0x14
mov dword [esp + 0x1c], eax
jmp 0x53a129
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
je 0x53a141
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x53a141
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
cmp byte [ebx + 0x60], 0
je 0x53a20d
mov eax, dword [ebx + 0x48]
mov edi, dword [esi + 0x74]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
cmp edx, 1
jne 0x53a187
mov al, byte [ebp + 0x13]
test al, al
jne 0x53a172
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
jmp 0x53a1b0
dec al
mov byte [ebp + 0x13], al
movzx eax, al
mov eax, dword [ebp + eax*4 + 0x98]
mov dword [esp + 0x10], eax
jmp 0x53a1b0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
cmp edx, ecx
jg 0x53a1a1
add eax, edx
sub ecx, edx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], ecx
jmp 0x53a1b0
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [esp + 0x10], ecx
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x48]
push 0
push 0
push dword [esp + 0x18]
push dword [eax + 0x14]
push ebp
call fcn.004ec910
mov edx, dword [esi + 0x74]
add esp, 0x14
cmp edi, edx
jge 0x53a20d
mov ebp, dword [esp + 0x2c]
mov ecx, edi
test edi, edi
jns 0x53a1dc
mov ecx, dword [esi + 0x74]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x53a1eb
mov ecx, 0x610b1c
jmp 0x53a1f4
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
cmp byte [ecx], 0x5d
jne 0x53a204
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 0x30]
jne 0x53a204
mov dword [ecx + 4], ebp
inc edi
cmp edi, edx
jl 0x53a1d2
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
test byte [eax + 4], 0x20
je 0x53a2d5
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x14]
push dword [eax + 8]
push ebp
call fcn.004ef020
mov edi, eax
add esp, 8
test edi, edi
jne 0x53a239
mov eax, dword [ebp]
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x53a256
push 0
push 0
push 0
push 0x54
push esi
call fcn.004c7840
add esp, 0x14
mov edx, eax
jmp 0x53a28d
mov ebp, dword [esp + 0x24]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x53a2a3
push edi
push 0xfffffffffffffffe
push eax
call fcn.004b4610
add esp, 0xc
jmp 0x53a2d5
test edx, edx
jns 0x53a2ab
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x53a2ca
push 0xfffffffffffffffe
push edi
push eax
push esi
call fcn.0052c640
add esp, 0x10
jmp 0x53a2d5
test edi, edi
je 0x53a2d5
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
mov eax, dword [esp + 0x30]
mov edx, eax
mov ecx, dword [esi + 0x74]
neg edx
mov edi, dword [ebx + 0x34]
sbb edx, edx
add edx, 0xa1
cmp dword [esi + 0x78], ecx
jg 0x53a303
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
push edx
push esi
call fcn.004c7840
add esp, 0x14
jmp 0x53a33c
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
je 0x53a356
push edx
push 0xfffffffffffffff8
push eax
call fcn.004b4610
add esp, 0xc
jmp 0x53a368
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x53a381
mov ecx, dword [esp + 0x18]
movzx edx, cl
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp byte [ebx + 0x60], 0
je 0x53a3b5
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x53a3aa
test edi, edi
je 0x53a3b5
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x53a3b5
movzx eax, al
mov dword [ebp + eax*4 + 0x98], edi
inc byte [ebp + 0x13]
jmp 0x53a3b5
cmp eax, dword [ebp + 0x1c]
jle 0x53a3b5
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x53a3e0
mov edx, dword [esi + 0x74]
jns 0x53a3c5
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x53a3d4
mov eax, 0x610b1c
jmp 0x53a3dd
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x539c53
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret