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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [ecx + 8]
test esi, esi
jne 0x540f8f
cmp dword [ecx + 0x74], esi
jne 0x540f84
mov eax, dword [ecx]
test byte [eax + 0x50], 8
jne 0x540f84
mov byte [ecx + 0x17], 1
push ecx
call fcn.0051ae50
add esp, 4
mov esi, eax
test edi, edi
je 0x541297
lea eax, [edi + 0x58]
push ebx
mov dword [esp + 0xc], eax
push ebp
cmp dword [eax], 0
jne 0x5410d9
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x1000
je 0x5410d9
cmp byte [edi + 0x11], 0x5a
je 0x5410d9
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
cmp dword [esi + 0x78], ecx
jg 0x540fe0
push 0
push edx
push 0
push 0x4a
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54100f
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 ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x54102c
push 0
push 0
push edx
push 0x22
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54105b
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x22
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 ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x3c]
cmp dword [esi + 0x78], ecx
jg 0x54107a
push edx
push 0
push ebx
push 0x5d
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5410a5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [edx - 2]
test ecx, ecx
jns 0x5410b2
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x5410c7
mov eax, 0x6a4314
mov dword [eax + 8], edx
jmp 0x541286
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x541286
cmp dword [edi + 0x40], 0
jne 0x541286
mov eax, dword [edi + 0x48]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x5410f1
mov edx, dword [edx]
jmp 0x5410f3
xor edx, edx
cmp dword [esp + 0x1c], 0
mov ecx, dword [esi + 0x74]
je 0x54120e
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x54111d
push 0
push edx
push ebx
push 0xa4
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541148
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa4
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [eax + 0x57], 0
je 0x541161
push edx
push 0xfffffffffffffff8
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x541173
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 ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x38]
mov ebx, dword [edi + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x541192
push 0
push edx
push ebx
push 0x4f
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5411bd
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 4], ebx
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 + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x5411dd
push 0
push edx
push 0
push 0x4a
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x541286
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
jmp 0x541286
mov ebx, dword [edi + 0x38]
mov ebp, dword [edi + 0x34]
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x78], ecx
jg 0x541230
push ebx
push edx
push ebp
push 0xa3
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54125b
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xa3
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [edi + 0x2c]
cmp byte [eax + 0x57], 0
je 0x541274
push edx
push 0xfffffffffffffff8
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x541286
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 edi, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x540fa0
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret