Function at 0x636df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x7dcee0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [esi + 0x68]
mov dword [esp + 0x10], esi
mov dword [esi + 0x84], ebx
jge 0x636e2e
neg eax
and eax, 0xffff
push ebx
push edi
mov dword [esp + 0x28], eax
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
lea ecx, [esp + 0x18]
push ecx
push 0x78fc18
push edi
call fcn.0061a090
add esp, 0xc
cmp eax, ebx
jne 0x63751b
mov edx, 0x5a4d
mov dword [esp + 0xc], 2
cmp word [esp + 0x18], dx
jne 0x637510
movzx eax, word [esp + 0x1a]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
lea ecx, [esp + 0x24]
push ecx
push 0x78fc2c
push edi
call fcn.0061a090
add esp, 0xc
cmp eax, ebx
jne 0x63751b
mov cx, word [esp + 0x24]
mov edx, 0x454e
mov eax, 2
mov dword [esp + 0xc], eax
cmp cx, dx
jne 0x6370cd
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x1a]
add eax, ecx
push eax
push edi
mov dword [esp + 0x1c], ebx
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
sub edx, eax
push edx
push edi
call fcn.00619fb0
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
push edi
call fcn.00618040
movzx eax, ax
add esp, 4
mov dword [esp + 0x1c], eax
cmp ax, 0x10
jbe 0x636f4a
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
push edi
call fcn.00618040
movzx esi, ax
add esp, 4
test si, si
je 0x636fb2
jmp 0x636f60
push edi
call fcn.00618040
add esp, 4
mov ecx, 0x8008
movzx eax, ax
push edi
cmp si, cx
je 0x636f99
movzx eax, ax
lea edx, [eax + eax*2]
lea eax, [edx*4 + 4]
add dword [edi + 0x20], eax
call fcn.00618040
movzx esi, ax
add esp, 4
test si, si
jne 0x636f60
jmp 0x636fb2
movzx ebx, ax
call fcn.00617f00
mov ecx, dword [edi + 0x20]
add esp, 4
sub ecx, dword [edi + 0x24]
lea edx, [eax + ecx + 4]
mov dword [esp + 0x14], edx
push edi
call fcn.0061a060
add esp, 4
test bx, bx
je 0x636f30
cmp dword [esp + 0x14], 0
je 0x636f30
movzx eax, bx
mov ecx, eax
imul ecx, ecx, 0x76
cmp ecx, dword [edi + 4]
ja 0x636f30
cmp dword [ebp + 8], 0
mov esi, dword [esp + 0x10]
mov dword [esi], eax
jl 0x637517
mov ebx, dword [esp + 0x20]
cmp ebx, eax
jl 0x637012
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0069528d
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
push 0xac
push eax
call fcn.0061a320
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x63751b
mov edx, dword [esp + 0x14]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63750c
push 0xc
push edi
call fcn.00619fb0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63750c
movzx esi, word [esp + 0x1c]
push edi
call fcn.00618040
mov ebx, dword [esp + 0x14]
movzx edx, ax
mov eax, dword [ebx + 0x84]
mov ecx, esi
shl edx, cl
push edi
mov dword [eax], edx
call fcn.00618040
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.0061a060
mov ecx, dword [ebx + 0x84]
push ecx
call fcn.00636d20
add esp, 0x10
mov dword [esp + 0xc], eax
mov esi, ebx
jmp 0x6374f2
mov edx, 0x4550
cmp cx, dx
jne 0x6374f2
movzx eax, word [esp + 0x1a]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
lea ecx, [esp + 0x4c]
push ecx
push 0x78fc44
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x63751b
cmp dword [esp + 0x4c], 0x4550
jne 0x636f30
mov edx, 0x14c
cmp word [esp + 0x50], dx
jne 0x636f30
mov eax, 0xe0
cmp word [esp + 0x54], ax
jne 0x636f30
mov ecx, 0x10b
cmp word [esp + 0x56], cx
jne 0x636f30
mov dword [esi], ebx
xor edx, edx
xor esi, esi
cmp dx, word [esp + 0x52]
jae 0x636f30
jmp 0x637170
lea eax, [esp + 0xa8]
push eax
push 0x78fc78
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0xb0]
je 0x6371ac
inc esi
cmp si, word [esp + 0x52]
jb 0x637170
jmp 0x636f30
mov edx, dword [esp + 0xb8]
push edx
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea eax, [esp + 0x70]
push eax
push 0x78fc98
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
mov ecx, dword [esp + 0xb8]
movzx edx, word [esp + 0x7e]
mov dword [esp + 0x14], ecx
movzx ecx, word [esp + 0x7c]
add edx, ecx
mov dword [esp + 0x1c], ebx
test edx, edx
jle 0x6374ee
xor ecx, ecx
mov edx, dword [esp + 0x14]
lea eax, [edx + ecx*8 + 0x10]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea ecx, [esp + 0x3c]
push ecx
push 0x78fcb8
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
mov eax, dword [esp + 0x40]
test eax, eax
jns 0x636f30
mov edx, dword [esp + 0xb8]
and eax, 0x7fffffff
lea esi, [eax + edx]
push esi
push edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], esi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea eax, [esp + 0x60]
push eax
push 0x78fc98
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
movzx ecx, word [esp + 0x6e]
movzx edx, word [esp + 0x6c]
add ecx, edx
mov dword [esp + 0x2c], eax
test ecx, ecx
jle 0x6374ce
xor ecx, ecx
lea eax, [esi + ecx*8 + 0x10]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea ecx, [esp + 0x44]
push ecx
push 0x78fcb8
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
mov eax, dword [esp + 0x48]
test eax, eax
jns 0x636f30
mov edx, dword [esp + 0xb8]
and eax, 0x7fffffff
lea ebx, [eax + edx]
push ebx
push edi
mov dword [esp + 0x50], eax
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea eax, [esp + 0x80]
push eax
push 0x78fc98
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
movzx ecx, word [esp + 0x8e]
movzx edx, word [esp + 0x8c]
add ecx, edx
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x6374ae
xor ecx, ecx
lea eax, [ebx + ecx*8 + 0x10]
push eax
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea ecx, [esp + 0x90]
push ecx
push 0x78fcb8
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
test dword [esp + 0x48], 0x80000000
jne 0x636f30
cmp dword [esp + 0x3c], 8
jne 0x637484
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
add edx, eax
push edx
push edi
call fcn.00617e90
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
lea ecx, [esp + 0x98]
push ecx
push 0x78fcc8
push edi
call fcn.0061a090
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63751b
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
cmp edx, dword [esi]
jne 0x637482
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0xac
push ecx
call fcn.0061a320
mov ecx, eax
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x84], ecx
test eax, eax
jne 0x63751b
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0xb0]
add edx, dword [esp + 0xb8]
mov dword [ecx], edx
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0xa4], ecx
mov edx, dword [esi + 0x84]
push edx
call fcn.00636d20
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x63750c
inc dword [esi]
mov ecx, dword [esp + 0x30]
movzx edx, word [esp + 0x8e]
movzx esi, word [esp + 0x8c]
inc ecx
mov dword [esp + 0x30], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x63736c
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
movzx edx, word [esp + 0x6e]
movzx ebx, word [esp + 0x6c]
inc ecx
mov dword [esp + 0x2c], ecx
movzx ecx, cx
add edx, ebx
cmp ecx, edx
jl 0x6372bc
mov ecx, dword [esp + 0x1c]
movzx edx, word [esp + 0x7e]
movzx esi, word [esp + 0x7c]
inc ecx
mov dword [esp + 0x1c], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x63720d
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x636f30
cmp dword [esp + 0x20], ecx
jge 0x636ff8
test eax, eax
je 0x63751b
jmp 0x637510
mov esi, dword [esp + 0x10]
mov edi, esi
call fcn.00636cc0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0069528d
mov esp, ebp
pop ebp
ret