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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov esi, dword [ebx + 8]
test esi, esi
jne 0x542f7c
cmp dword [ebx + 0x74], esi
jne 0x542f71
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x542f71
mov byte [ebx + 0x17], 1
push ebx
call fcn.0051ae50
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x1c]
xor ebp, ebp
test edi, edi
je 0x543189
lea eax, [edi + 0x58]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x74]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x78], ecx
jg 0x542fb5
push 0
push edx
push 0
push 0x4a
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542fe8
mov ebx, 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], 0x4a
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 [edi + 0x48]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x542ff6
mov ecx, dword [eax]
jmp 0x542ff8
xor ecx, ecx
cmp ebp, ecx
jg 0x543006
test eax, eax
je 0x543004
mov ebp, dword [eax]
jmp 0x543006
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x54317a
mov eax, dword [ebx + 0x20]
cmp eax, str.nth_value
je 0x543028
cmp eax, str.first_value
jne 0x5430c9
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x543045
push 0
push edx
push 0
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x543078
mov ebx, 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], 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 edx, dword [edi + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x543096
push 0
push edx
push 0
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5430c9
mov ebx, 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], 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
test dword [ebx + 4], 0x1000
je 0x54317a
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x54317a
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5430fe
push 0
push 0
push edx
push 0x91
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54312d
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x91
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 [edi + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x54314b
push 0
push edx
push 0
push 0x47
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54317a
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 edi, dword [edi + 0x24]
test edi, edi
jne 0x542f91
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2c]
pop edi
pop esi
lea eax, [ecx + 1]
add ecx, ebp
pop ebp
mov dword [ebx + 0x2c], ecx
pop ebx
pop ecx
ret