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

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax]
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test eax, eax
je 0x54278d
mov ebp, dword [eax]
jmp 0x54278f
xor ebp, ebp
mov eax, dword [edi + 0x38]
dec eax
mov dword [esp + 0x1c], eax
dec eax
mov dword [esp + 0x2c], eax
mov dword [edi + 0x38], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x5427b2
inc dword [edi + 0x2c]
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x18], ecx
jmp 0x5427c5
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x18], eax
mov al, byte [edi + 0x13]
test al, al
jne 0x5427d4
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
jmp 0x5427e3
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x542804
push ebp
push edi
call fcn.00502db0
push ebp
push edi
mov dword [esp + 0x34], eax
call fcn.00502db0
add esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x30]
cmp dword [esi + 0x78], ecx
jg 0x542826
push 0
push dword [esp + 0x1c]
push edx
push 0x86
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542855
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 + 0x18]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x24]
push dword [ebx + 0x30]
push dword [esp + 0x44]
call fcn.005431a0
add esp, 0xc
jmp 0x542870
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x54288d
push 0
push edx
push 0
push 0x4a
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x5428bc
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 ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x542870
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x58]
cmp dword [esi + 0x78], ecx
jg 0x5428e8
push edx
push dword [esp + 0x30]
push dword [esp + 0x1c]
push 0x19
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x54291b
mov edi, 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 + 4], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x19
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x78], ecx
jg 0x542942
mov edx, dword [esp + 0x10]
push 0
push edx
push dword [esp + 0x1c]
push 0x86
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542975
mov edx, 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 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x86
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 [ebx + 0x5c]
cmp dword [esi + 0x78], ecx
jg 0x54299a
push dword [esp + 0x10]
push dword [esp + 0x30]
push edx
push 0x36
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x5429cd
mov edi, dword [esp + 0x30]
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 + 0x2c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x36
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [ebx + 0x14]
cmp al, 0x55
jne 0x542a2d
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5429f5
push edx
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x35
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542c0b
mov edx, 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 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x542c0b
cmp al, 0x42
je 0x542c0b
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x542a56
push ebx
push ebx
push eax
push edi
call fcn.00506090
add esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x14], 0x5e
jne 0x542ab4
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x78], ebx
jg 0x542a81
push dword [esp + 0x10]
push 0
push dword [esp + 0x20]
push 0x35
push esi
call fcn.004ceed0
add esp, 0x14
mov ebx, eax
jmp 0x542ab4
mov edx, dword [esp + 0x18]
lea eax, [ebx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x2c], 0
je 0x542b90
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.005431a0
mov ecx, dword [esi + 0x74]
add esp, 0xc
cmp dword [esi + 0x78], ecx
jg 0x542af1
push ebp
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x59
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542b20
mov edx, dword [esp + 0x20]
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 + 0x24]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
cmp byte [eax + 0x57], 0
je 0x542b3a
push edx
push 0xfffffffffffffff7
push eax
call fcn.004bbca0
add esp, 0xc
jmp 0x542b4c
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], edx
mov eax, dword [esi + 0x74]
lea edx, [eax + 1]
cmp dword [esi + 0x78], eax
jg 0x542b6a
push edx
push dword [esp + 0x20]
push edx
push 0x10
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542be0
mov edi, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edx
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x542bd8
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x542bad
push 0
push dword [esp + 0x20]
push 0
push 0xb
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542be0
mov edx, 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], 0xb
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 ebx, ebx
je 0x542c07
mov edx, dword [esi + 0x74]
jns 0x542bec
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x542bfb
mov eax, 0x6a4314
jmp 0x542c04
mov eax, dword [esi + 0x70]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
push dword [eax + 0x14]
push 0
push dword [esp + 0x1c]
push ebx
push eax
call fcn.005412a0
mov ecx, dword [esi + 0xc]
add esp, 0x14
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x542c40
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x542c49
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
mov ebx, dword [esp + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x542c69
push 0
push ebx
push dword [esp + 0x1c]
push 5
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x542c98
mov edx, 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], 5
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
lea ecx, [ebx - 1]
test ecx, ecx
jns 0x542ca5
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x542cb4
mov eax, 0x6a4314
jmp 0x542cbd
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
lea ecx, [ebx + 1]
mov dword [eax + 8], edx
mov edx, dword [esi + 0x74]
test ecx, ecx
jns 0x542ccd
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x542cdc
mov eax, 0x6a4314
jmp 0x542ce5
mov eax, dword [esi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], edx
test ecx, ecx
je 0x542d04
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x542d04
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x542d20
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x542d20
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
test ebp, ebp
je 0x542d80
cmp ebp, 1
jne 0x542d63
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x542d45
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x542d45
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x542d80
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x542d80
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
jmp 0x542d80
cmp ebp, dword [edi + 0x1c]
jle 0x542d80
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
cmp ebp, ebp
jle 0x542d80
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
push 1
push dword [esp + 0x40]
call fcn.00540f60
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret