Function at 0x4d5440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0xb0], 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 [esp + 0x1c], esi
mov dword [esp + 0x34], eax
mov dword [esi + 0x84], ebx
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
lea ecx, [esp + 0x1c]
push ecx
push 0x533910
push edi
call fcn.004bad10
add esp, 0xc
cmp eax, ebx
jne 0x4d5b1c
mov edx, 0x5a4d
mov dword [esp + 0x10], 2
cmp word [esp + 0x1c], dx
jne 0x4d5b11
movzx eax, word [esp + 0x1e]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
lea ecx, [esp + 0x24]
push ecx
push 0x533924
push edi
call fcn.004bad10
add esp, 0xc
cmp eax, ebx
jne 0x4d5b1c
mov cx, word [esp + 0x24]
mov edx, 0x454e
mov eax, 2
mov dword [esp + 0x10], eax
cmp cx, dx
jne 0x4d56df
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x1e]
add eax, ecx
push eax
push edi
mov dword [esp + 0x20], ebx
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
sub edx, eax
push edx
push edi
call fcn.004bac30
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
push edi
call fcn.004b9f20
movzx ecx, ax
push edi
mov dword [esp + 0x28], ecx
call fcn.004b9f20
movzx esi, ax
add esp, 8
test si, si
je 0x4d55c8
push edi
call fcn.004b9f20
add esp, 4
mov edx, 0x8008
movzx eax, ax
push edi
cmp si, dx
je 0x4d55af
movzx eax, ax
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 4]
add dword [edi + 0x20], ecx
call fcn.004b9f20
movzx esi, ax
add esp, 4
test si, si
jne 0x4d5576
jmp 0x4d55c8
movzx ebx, ax
call fcn.004b9e00
mov edx, dword [edi + 0x20]
add esp, 4
sub edx, dword [edi + 0x24]
lea eax, [eax + edx + 4]
mov dword [esp + 0x18], eax
push edi
call fcn.004bace0
add esp, 4
test bx, bx
je 0x4d5799
cmp dword [esp + 0x18], 0
je 0x4d5799
movzx eax, bx
mov ecx, eax
imul ecx, ecx, 0x76
cmp ecx, dword [edi + 4]
ja 0x4d5799
mov ebx, dword [ebp + 8]
cmp ebx, eax
mov esi, dword [esp + 0x14]
mov dword [esi], eax
jl 0x4d561d
mov eax, 0x84
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004ecddb
mov esp, ebp
pop ebp
ret
test ebx, ebx
jl 0x4d5b18
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push 0xac
push eax
call fcn.004baf30
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x4d5b1c
mov edx, dword [esp + 0x18]
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b0d
push 0xc
push edi
call fcn.004bac30
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b0d
movzx esi, word [esp + 0x20]
push edi
call fcn.004b9f20
mov ebx, dword [esp + 0x18]
movzx edx, ax
mov eax, dword [ebx + 0x84]
mov ecx, esi
shl edx, cl
push edi
mov dword [eax], edx
call fcn.004b9f20
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.004bace0
mov eax, dword [ebx + 0x84]
add esp, 0xc
call fcn.004d5370
mov dword [esp + 0x10], eax
mov esi, ebx
jmp 0x4d5af4
mov edx, 0x4550
cmp cx, dx
jne 0x4d5af4
movzx eax, word [esp + 0x1e]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
lea ecx, [esp + 0x4c]
push ecx
push 0x53393c
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4d5b1c
cmp dword [esp + 0x4c], 0x4550
jne 0x4d5799
mov edx, 0x14c
cmp word [esp + 0x50], dx
jne 0x4d5799
mov eax, 0xe0
cmp word [esp + 0x54], ax
jne 0x4d5799
mov ecx, 0x10b
cmp word [esp + 0x56], cx
jne 0x4d5799
mov dword [esi], ebx
xor edx, edx
xor esi, esi
cmp dx, word [esp + 0x52]
jae 0x4d5799
lea eax, [esp + 0xa8]
push eax
push 0x533970
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0xb0]
je 0x4d57b3
inc esi
cmp si, word [esp + 0x52]
jb 0x4d5762
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004ecddb
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xb8]
push edx
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea eax, [esp + 0x80]
push eax
push 0x533990
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
mov ecx, dword [esp + 0xb8]
movzx edx, word [esp + 0x8e]
mov dword [esp + 0x18], ecx
movzx ecx, word [esp + 0x8c]
add edx, ecx
mov dword [esp + 0x20], ebx
test edx, edx
jle 0x4d5af0
xor ecx, ecx
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx*8 + 0x10]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea ecx, [esp + 0x44]
push ecx
push 0x5339b0
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
mov eax, dword [esp + 0x48]
test eax, eax
jns 0x4d5799
mov edx, dword [esp + 0xb8]
and eax, 0x7fffffff
lea esi, [eax + edx]
push esi
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], esi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea eax, [esp + 0x70]
push eax
push 0x533990
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
movzx ecx, word [esp + 0x7e]
movzx edx, word [esp + 0x7c]
add ecx, edx
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x4d5aca
xor ecx, ecx
lea eax, [esi + ecx*8 + 0x10]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea ecx, [esp + 0x38]
push ecx
push 0x5339b0
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x4d5799
mov edx, dword [esp + 0xb8]
and eax, 0x7fffffff
lea ebx, [eax + edx]
push ebx
push edi
mov dword [esp + 0x44], eax
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea eax, [esp + 0x60]
push eax
push 0x533990
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
movzx ecx, word [esp + 0x6e]
movzx edx, word [esp + 0x6c]
add ecx, edx
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x4d5aaa
xor ecx, ecx
lea eax, [ebx + ecx*8 + 0x10]
push eax
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea ecx, [esp + 0x90]
push ecx
push 0x5339b0
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
test dword [esp + 0x3c], 0x80000000
jne 0x4d5799
cmp dword [esp + 0x44], 8
jne 0x4d5a86
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x18]
add edx, eax
push edx
push edi
call fcn.004b9d90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
lea ecx, [esp + 0x98]
push ecx
push 0x5339c0
push edi
call fcn.004bad10
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b1c
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
cmp edx, dword [esi]
jne 0x4d5a84
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push 0xac
push ecx
call fcn.004baf30
mov ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x84], ecx
test eax, eax
jne 0x4d5b1c
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 eax, dword [esi + 0x84]
call fcn.004d5370
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d5b0d
inc dword [esi]
mov ecx, dword [esp + 0x34]
movzx edx, word [esp + 0x6e]
movzx esi, word [esp + 0x6c]
inc ecx
mov dword [esp + 0x34], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x4d5973
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
movzx edx, word [esp + 0x7e]
movzx ebx, word [esp + 0x7c]
inc ecx
mov dword [esp + 0x30], ecx
movzx ecx, cx
add edx, ebx
cmp ecx, edx
jl 0x4d58cc
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0x8e]
movzx esi, word [esp + 0x8c]
inc ecx
mov dword [esp + 0x20], ecx
movzx ecx, cx
add edx, esi
cmp ecx, edx
jl 0x4d581d
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
test ecx, ecx
je 0x4d5799
cmp dword [ebp + 8], ecx
jge 0x4d5603
test eax, eax
je 0x4d5b1c
jmp 0x4d5b11
mov esi, dword [esp + 0x14]
mov edi, esi
call fcn.004d5310
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ecddb
mov esp, ebp
pop ebp
ret