Function at 0x56e310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
push edi
mov edi, dword [esi + 0x68]
xor ebx, ebx
push ebx
push edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x94], eax
mov dword [esi + 0x84], ebx
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
lea ecx, [ebp - 0x80]
push ecx
push 0x5b7960
push edi
call fcn.005543b0
add esp, 0xc
cmp eax, ebx
jne 0x56e97e
mov edx, 0x5a4d
mov dword [ebp - 0x70], 2
cmp word [ebp - 0x80], dx
jne 0x56e974
movzx eax, word [ebp - 0x7e]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
lea ecx, [ebp - 0x88]
push ecx
push 0x5b7974
push edi
call fcn.005543b0
add esp, 0xc
cmp eax, ebx
jne 0x56e97e
mov cx, word [ebp - 0x88]
mov edx, 0x454e
mov eax, 2
mov dword [ebp - 0x70], eax
cmp cx, dx
jne 0x56e598
movzx eax, word [ebp - 0x86]
movzx ecx, word [ebp - 0x7e]
add eax, ecx
push eax
push edi
mov dword [ebp - 0x78], ebx
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
movzx edx, word [ebp - 0x84]
movzx eax, word [ebp - 0x86]
sub edx, eax
push edx
push edi
call fcn.005542c0
add esp, 8
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
push edi
call fcn.00552fe0
movzx ecx, ax
push edi
mov dword [ebp - 0x7c], ecx
call fcn.00552fe0
movzx esi, ax
add esp, 8
test si, si
je 0x56e48d
mov edi, edi
push edi
call fcn.00552fe0
add esp, 4
mov edx, 0x8008
movzx eax, ax
push edi
cmp si, dx
je 0x56e476
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 4]
add dword [edi + 0x20], ecx
call fcn.00552fe0
movzx esi, ax
add esp, 4
test si, si
jne 0x56e440
jmp 0x56e48d
mov ebx, eax
call fcn.00552ea0
mov edx, dword [edi + 0x20]
add esp, 4
sub edx, dword [edi + 0x24]
lea eax, [eax + edx + 4]
mov dword [ebp - 0x78], eax
push edi
call fcn.00554380
add esp, 4
test bx, bx
je 0x56e63e
cmp dword [ebp - 0x78], 0
je 0x56e63e
movzx eax, bx
mov ecx, eax
imul ecx, ecx, 0x76
cmp ecx, dword [edi + 4]
ja 0x56e63e
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x74]
mov dword [esi], eax
cmp ebx, eax
jl 0x56e4dc
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
test ebx, ebx
js 0x56e97b
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x70]
push edx
push 0xac
push eax
call fcn.005545c0
mov dword [esi + 0x84], eax
mov eax, dword [ebp - 0x70]
add esp, 0xc
test eax, eax
jne 0x56e97e
mov edx, dword [ebp - 0x78]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e971
push 0xc
push edi
call fcn.005542c0
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e971
movzx esi, word [ebp - 0x7c]
push edi
call fcn.00552fe0
mov ebx, dword [ebp - 0x74]
movzx edx, ax
mov eax, dword [ebx + 0x84]
mov ecx, esi
shl edx, cl
push edi
mov dword [eax], edx
call fcn.00552fe0
movzx edx, ax
mov eax, dword [ebx + 0x84]
mov ecx, esi
shl edx, cl
push edi
mov dword [eax + 0xa4], edx
add dword [edi + 0x20], 8
call fcn.00554380
mov eax, dword [ebx + 0x84]
add esp, 0xc
call fcn.0056e250
mov dword [ebp - 0x70], eax
mov esi, ebx
jmp 0x56e958
mov edx, 0x4550
cmp cx, dx
jne 0x56e958
movzx eax, word [ebp - 0x7e]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
lea ecx, [ebp - 0x18]
push ecx
push 0x5b798c
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
cmp eax, ebx
jne 0x56e97e
cmp dword [ebp - 0x18], 0x4550
jne 0x56e63e
mov edx, 0x14c
cmp word [ebp - 0x14], dx
jne 0x56e63e
mov eax, 0xe0
cmp word [ebp - 0x10], ax
jne 0x56e63e
mov ecx, 0x10b
cmp word [ebp - 0xe], cx
jne 0x56e63e
mov dword [esi], ebx
xor edx, edx
xor esi, esi
cmp dx, word [ebp - 0x12]
jae 0x56e63e
lea eax, [ebp - 0x2c]
push eax
push 0x5b79c0
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x24]
je 0x56e654
inc esi
cmp si, word [ebp - 0x12]
jb 0x56e612
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push edx
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea eax, [ebp - 0x4c]
push eax
push 0x5b79e0
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ebp - 0x3e]
mov dword [ebp - 0x78], ecx
movzx ecx, word [ebp - 0x40]
add edx, ecx
mov dword [ebp - 0x7c], ebx
test edx, edx
jle 0x56e955
xor ecx, ecx
mov edx, dword [ebp - 0x78]
lea eax, [edx + ecx*8 + 0x10]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea ecx, [ebp - 0xa8]
push ecx
push 0x5b7a00
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
mov eax, dword [ebp - 0xa4]
test eax, eax
jns 0x56e63e
mov edx, dword [ebp - 0x1c]
and eax, 0x7fffffff
lea esi, [eax + edx]
push esi
push edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], esi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea eax, [ebp - 0x5c]
push eax
push 0x5b79e0
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
movzx ecx, word [ebp - 0x4e]
movzx edx, word [ebp - 0x50]
add ecx, edx
mov dword [ebp - 0x8c], eax
test ecx, ecx
jle 0x56e939
xor ecx, ecx
lea eax, [esi + ecx*8 + 0x10]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea ecx, [ebp - 0xa0]
push ecx
push 0x5b7a00
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
mov eax, dword [ebp - 0x9c]
test eax, eax
jns 0x56e63e
mov edx, dword [ebp - 0x1c]
and eax, 0x7fffffff
lea ebx, [eax + edx]
push ebx
push edi
mov dword [ebp - 0x9c], eax
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea eax, [ebp - 0x3c]
push eax
push 0x5b79e0
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
movzx ecx, word [ebp - 0x2e]
movzx edx, word [ebp - 0x30]
add ecx, edx
mov dword [ebp - 0x90], eax
test ecx, ecx
jle 0x56e917
xor ecx, ecx
lea eax, [ebx + ecx*8 + 0x10]
push eax
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea ecx, [ebp - 0xb0]
push ecx
push 0x5b7a00
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
test dword [ebp - 0x9c], 0x80000000
jne 0x56e63e
cmp dword [ebp - 0xa8], 8
jne 0x56e8ef
mov edx, dword [ebp - 0xac]
add edx, dword [ebp - 0x78]
push edx
push edi
call fcn.00552e30
add esp, 8
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
lea ecx, [ebp - 0x6c]
push ecx
push 0x5b7a10
push edi
call fcn.005543b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e97e
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x74]
cmp edx, dword [esi]
jne 0x56e8ed
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x70]
push eax
push 0xac
push ecx
call fcn.005545c0
mov ecx, eax
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov dword [esi + 0x84], ecx
test eax, eax
jne 0x56e97e
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov eax, dword [esi + 0x84]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0xa4], ecx
mov eax, dword [esi + 0x84]
call fcn.0056e250
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x56e971
inc dword [esi]
mov ecx, dword [ebp - 0x90]
movzx edx, word [ebp - 0x2e]
movzx esi, word [ebp - 0x30]
inc ecx
mov dword [ebp - 0x90], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x56e7f7
mov esi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x8c]
movzx edx, word [ebp - 0x4e]
movzx ebx, word [ebp - 0x50]
inc ecx
mov dword [ebp - 0x8c], ecx
movzx ecx, cx
add edx, ebx
cmp ecx, edx
jl 0x56e753
mov ecx, dword [ebp - 0x7c]
movzx edx, word [ebp - 0x3e]
movzx esi, word [ebp - 0x40]
inc ecx
mov dword [ebp - 0x7c], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x56e6a6
mov esi, dword [ebp - 0x74]
mov ecx, dword [esi]
test ecx, ecx
je 0x56e63e
cmp dword [ebp + 8], ecx
jge 0x56e4c6
test eax, eax
je 0x56e97e
jmp 0x56e974
mov esi, dword [ebp - 0x74]
mov edi, esi
call fcn.0056e1f0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00596083
mov esp, ebp
pop ebp
ret