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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ecx + 0x20]
push esi
mov esi, dword [ebx + 8]
push edi
mov eax, dword [eax + 0x1c]
mov edi, dword [ecx + 0x44]
mov eax, dword [eax + 0x1c]
mov ebp, dword [eax]
test esi, esi
jne 0x540ead
cmp dword [ebx + 0x74], esi
jne 0x540ea2
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x540ea2
mov byte [ebx + 0x17], 1
push ebx
call fcn.0052ec00
add esp, 4
mov esi, eax
mov ecx, dword [esi + 0x74]
lea eax, [edi + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x78], ecx
jg 0x540ecf
push 0
push ebp
push edx
push 0x74
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x540efa
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov edx, dword [edx]
lea ebp, [edx + 1]
cmp dword [esi + 0x78], ecx
jg 0x540f1c
push 0
push edx
push ebp
push 0x71
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x540f4b
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax]
lea ebp, [edx + 2]
cmp dword [esi + 0x78], ecx
jg 0x540f6d
push 0
push edx
push ebp
push 0x71
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x540f9c
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax]
lea ebp, [edx + 3]
cmp dword [esi + 0x78], ecx
jg 0x540fbe
push 0
push edx
push ebp
push 0x71
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x540fed
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x541050
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [edi + 0x44], eax
add dword [ebx + 0x2c], ecx
lea ebp, [ecx - 1]
mov edx, dword [edi + 0x44]
add ebp, edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x541021
push ebp
push edx
push 0
push 0x4a
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541050
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x2c]
inc edx
mov dword [ebx + 0x2c], edx
mov dword [edi + 0x54], edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x541074
push 0
push edx
push 1
push 0x47
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x5410a3
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [edi + 0x14], 0
je 0x541180
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x58], eax
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x3c], eax
inc dword [ebx + 0x28]
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x58]
cmp dword [esi + 0x78], ecx
jg 0x5410e5
push 0
push edx
push 1
push 0x47
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541114
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x5c]
cmp dword [esi + 0x78], ecx
jg 0x541131
push 0
push edx
push 0
push 0x47
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541160
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [edi + 0x3c]
push 0x71
push esi
call fcn.0052e180
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x1000
je 0x541292
cmp byte [edi + 0x11], 0x5a
je 0x541292
mov eax, dword [edi + 0x48]
push 0
push 0
push dword [eax + 0x14]
push ebx
call fcn.00519e40
mov ecx, dword [ebx + 0x28]
mov ebp, eax
mov dword [edi + 0x3c], ecx
add esp, 0x10
mov ecx, dword [ebx + 0x2c]
inc dword [ebx + 0x28]
inc ecx
mov dword [edi + 0x40], ecx
add dword [ebx + 0x2c], 3
test ebp, ebp
je 0x5411d9
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x20]
cmp byte [eax + 1], 0x69
jne 0x5411d9
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x5411f6
push 0
push 2
push edx
push 0x74
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541229
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x54123f
push ebp
push 0xfffffffffffffff7
push eax
call fcn.004cfa50
add esp, 0xc
jmp 0x541251
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], ebp
mov edx, dword [edi + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x541272
push 0
push edx
push 0
push 0x47
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541339
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
jmp 0x541325
mov eax, dword [eax + 0x20]
cmp eax, str.nth_value
je 0x5412d4
cmp eax, str.first_value
je 0x5412d4
cmp eax, str.lead
je 0x5412b5
cmp eax, 0x582698
jne 0x541339
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x18]
inc dword [ebx + 0x28]
push dword [eax]
push dword [edi + 0x3c]
push 0x71
push esi
call fcn.0052e180
add esp, 0x10
jmp 0x541339
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x3c], eax
inc dword [ebx + 0x28]
add dword [ebx + 0x2c], 2
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov ebp, dword [edi + 0x3c]
mov edx, dword [eax]
cmp dword [esi + 0x78], ecx
jg 0x54130a
push 0
push edx
push ebp
push 0x71
push esi
call fcn.004e2c80
add esp, 0x14
jmp 0x541339
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x541180
pop edi
pop esi
pop ebp
pop ebx
ret