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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
mov edi, ecx
cmp dword [edi + 0x50], 0
je 0x542f79
cmp dword [edi + 0x78], 0
je 0x542f79
cmp dword [edi + 0x7c], 0
je 0x542f79
cmp byte [edi + 0xa4], 3
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
jbe 0x5428b0
mov eax, 0x37
pop edi
mov esp, ebp
pop ebp
ret 4
test byte [edi + 0xa6], 1
je 0x5428c5
mov eax, 0x38
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x74]
lea ecx, [ebp - 0x2c]
push ecx
push dword [edi + 0x1c]
push dword [eax + 0x2c]
push dword [eax + 0x28]
call fcn.0056c5b0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
jne 0x542f6d
cmp eax, 0x10
jb 0x542f6d
lea ecx, [eax - 1]
mov eax, dword [edi + 0x7c]
shr ecx, 3
inc ecx
cmp ecx, dword [eax + 0x20]
ja 0x542f6d
push ebx
xor ebx, ebx
push esi
nop word [eax + eax]
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax + 0x54]
movzx eax, bx
cdq
push edx
mov esi, dword [ecx]
push eax
call dword [esi + 0xc]
test eax, eax
je 0x542f5f
inc ebx
cmp bx, 0x10
jb 0x542910
push dword [edi + 0x1c]
call fcn.00479f2b
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x542f35
xor edx, edx
mov dword [ebp - 8], edx
cmp dword [ebp - 0x28], edx
jbe 0x542de8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x7c]
push 0
push edx
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x542dd8
push dword [ebp - 8]
mov ecx, edi
call fcn.0052e230
test eax, eax
je 0x542f46
push dword [edi + 0x1c]
push eax
push esi
call fcn.005c9900
add esp, 0xc
cmp dword [esi], 0x454c4946
jne 0x542f46
mov edx, dword [edi + 0x1c]
mov ecx, edx
movzx eax, word [esi + 6]
shr ecx, 9
inc ecx
cmp eax, ecx
jne 0x542f46
movzx eax, word [esi + 0x14]
cmp eax, edx
jae 0x542f46
test byte [esi + 0x16], 1
je 0x542f46
cmp dword [esi + 0x18], edx
ja 0x542f46
cmp dword [esi + 0x1c], edx
jne 0x542f46
movzx ecx, word [esi + 0x10]
lea ebx, [eax + esi]
mov dword [ebp - 0x34], ecx
dec edx
mov ecx, ebx
mov dword [ebp - 0xc], ebx
add esi, edx
mov edx, dword [ecx]
cmp edx, 0xffffffff
je 0x542a2e
mov eax, edx
nop dword [eax + eax]
test eax, eax
je 0x542f43
mov ebx, dword [ebp - 4]
mov ax, word [ecx + 0xe]
cmp ax, word [ebx + 0x28]
mov ebx, dword [ebp - 0xc]
jae 0x542e62
add ecx, dword [ecx + 4]
cmp ecx, esi
ja 0x542f43
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x542a00
xor eax, eax
cmp edx, 0xffffffff
je 0x542ba7
nop dword [eax]
cmp edx, eax
jb 0x542e62
cmp byte [ebx + 8], 1
mov eax, edx
mov dword [ebp - 0x24], eax
jne 0x542b96
mov edx, dword [ebx + 0x18]
mov eax, edx
mov ecx, dword [ebx + 0x1c]
and eax, ecx
cmp eax, 0xffffffff
jne 0x542a97
movzx eax, word [ebx + 0x20]
cmp byte [eax + ebx], 0
jne 0x542e62
mov eax, dword [ebx + 0x28]
or eax, dword [ebx + 0x2c]
jne 0x542e62
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
jne 0x542e62
mov eax, dword [ebx + 0x30]
or eax, dword [ebx + 0x34]
jmp 0x542b8d
test ecx, ecx
jne 0x542e47
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x14], ecx
jne 0x542e47
cmp eax, edx
ja 0x542e47
mov dword [ebp - 0x3c], 1
nop dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
call fcn.0052ced0
add esp, 0x18
test eax, eax
je 0x542e62
mov edx, dword [ebp - 0x18]
cmp edx, 0xffffffff
je 0x542c35
mov esi, dword [edi + 0x2c]
cmp edx, esi
ja 0x542e62
mov ecx, dword [ebp - 0x10]
lea eax, [ecx - 1]
add eax, edx
cmp eax, esi
ja 0x542e62
xor bl, bl
xor esi, esi
test ecx, ecx
je 0x542b68
mov eax, dword [edi + 0x78]
add edx, esi
push 0
push edx
mov ecx, dword [eax + 0x5c]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x542b43
cmp dword [ebp + 8], eax
je 0x542e2c
mov eax, dword [edi + 0x78]
push 0
mov ecx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov bl, 1
inc dword [edi + 0x94]
inc esi
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
jae 0x542b56
mov edx, dword [ebp - 0x18]
jmp 0x542b11
test bl, bl
je 0x542b68
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx + 0x5c]
call fcn.0055f410
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, ecx
jbe 0x542ac0
dec eax
cmp eax, ecx
jne 0x542e62
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
jne 0x542e62
mov eax, dword [ebp - 0x24]
add ebx, dword [ebx + 4]
mov dword [ebp - 0xc], ebx
mov edx, dword [ebx]
cmp edx, 0xffffffff
jne 0x542a40
mov esi, dword [ebp - 4]
cmp word [esi + 0x24], 0
jne 0x542f46
cmp dword [esi + 0x20], 0
jne 0x542dd8
cmp word [esi + 0x26], 0
jne 0x542dd8
inc dword [edi + 0x90]
push 0x36
call fcn.00479f06
add esp, 4
test eax, eax
je 0x542f2a
push edi
push dword [ebp - 8]
mov ecx, eax
call fcn.0052d5f0
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x542f2a
cmp dword [ebx + 0x32], 0
je 0x542f09
movzx esi, word [esi + 0x14]
add esi, dword [ebp - 4]
cmp dword [ebx + 8], 0
je 0x542dfe
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x542c73
nop dword [eax]
cmp ecx, 0x20
je 0x542c69
cmp byte [esi + 8], 0
movzx eax, byte [esi + 9]
push 0xffffffffffffffff
jne 0x542c3d
push 0
jmp 0x542c40
mov ecx, dword [ebp - 0x10]
jmp 0x542b6b
push dword [esi + 0x18]
push eax
movzx eax, word [esi + 0xa]
add eax, esi
push eax
push ecx
mov ecx, ebx
call fcn.0052d930
test eax, eax
je 0x542e7d
mov ecx, dword [ebp - 8]
cmp dword [eax + 0x10], ecx
je 0x542c69
cmp dword [esi], 0x30
jne 0x542e7d
add esi, dword [esi + 4]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
jne 0x542c20
push 0
push 0
push 0
push 0x5fe1f0
push 0xffffffffffffffff
mov ecx, ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0xffffffff
call fcn.0052d930
mov esi, eax
test esi, esi
je 0x542dcd
nop
push dword [esi + 0x10]
mov ecx, edi
call fcn.0052e230
mov ebx, eax
test ebx, ebx
je 0x542ed9
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 8]
cmp edx, eax
je 0x542ce2
cmp dword [ebx + 0x20], eax
jne 0x542ea0
mov eax, dword [ebp - 0x34]
cmp word [ebx + 0x26], ax
jne 0x542ea0
mov ax, word [ebx + 0x10]
cmp ax, word [esi + 0x16]
jne 0x542ea0
mov eax, dword [edi + 0x7c]
push 0
push edx
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x542ed2
push dword [edi + 0x1c]
movzx eax, word [esi + 0x18]
push eax
push dword [esi]
push ebx
call fcn.0052d0c0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x542ea0
cmp byte [ecx + 8], 1
jne 0x542d85
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp - 0x14]
jne 0x542d75
cmp eax, 0xffffffff
je 0x542d3f
inc eax
mul dword [edi + 0x20]
cmp dword [ebp - 0x1c], eax
jne 0x542ea7
cmp dword [ebp - 0x20], edx
jne 0x542ea7
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
cmp dword [ecx + 0x34], eax
ja 0x542ea7
jb 0x542d5f
cmp dword [ecx + 0x30], edx
ja 0x542ea7
cmp dword [ecx + 0x3c], eax
ja 0x542ea7
jb 0x542d73
cmp dword [ecx + 0x38], edx
ja 0x542ea7
xor eax, eax
mov ebx, dword [ecx + 0x18]
cmp eax, ebx
ja 0x542ea0
mov dword [ebp - 0x14], ebx
jmp 0x542d88
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
inc eax
push eax
push 0
push 0
push 0x5fe1f0
push 0xffffffffffffffff
mov dword [ebp - 0x24], eax
call fcn.0052d930
mov esi, eax
test esi, esi
jne 0x542ca0
cmp ebx, 0xffffffff
je 0x542dca
lea eax, [ebx + 1]
mul dword [edi + 0x20]
cmp dword [ebp - 0x1c], eax
jne 0x542eae
cmp dword [ebp - 0x20], edx
jne 0x542eae
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0x28]
jb 0x542962
push 1
push esi
call fcn.0058bb51
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi], 0xffffffff
je 0x542dcd
cmp byte [esi + 8], 1
jne 0x542e22
mov eax, dword [esi + 0x18]
inc eax
mul dword [edi + 0x20]
cmp dword [esi + 0x28], eax
jne 0x542f01
cmp dword [esi + 0x2c], edx
jne 0x542f01
add esi, dword [esi + 4]
cmp dword [esi], 0xffffffff
jne 0x542e03
jmp 0x542dcd
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, 0x3a
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, 0x39
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, 0x32
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, 0x33
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, 0x33
jmp 0x542ede
mov esi, 0x35
jmp 0x542ede
mov ecx, dword [ebp - 0xc]
push 1
mov eax, dword [ecx]
call dword [eax]
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, 0x35
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, 0x34
jmp 0x542ede
mov esi, 0x31
mov eax, dword [ebp - 0xc]
mov ecx, eax
push 1
mov edx, dword [eax]
call dword [edx]
push 1
push dword [ebp - 4]
call fcn.0058bb51
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
push 1
jmp 0x542eb5
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push 1
push esi
call fcn.0058bb51
add esp, 8
mov eax, 0x31
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
push 1
push esi
call fcn.0058bb51
add esp, 8
pop esi
pop ebx
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 4]
push 1
push esi
call fcn.0058bb51
add esp, 8
mov eax, 0x31
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
pop esi
pop ebx
mov eax, 0x36
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x30
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x13
pop edi
mov esp, ebp
pop ebp
ret 4