Function at 0x4c9ea0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x24c]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x3c]
push edi
add esi, eax
lea eax, [esp + 0x26c]
push eax
push 0x10083bc8
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x120]
push edx
mov dword [esp + 0x28], esi
call fcn.004c90f0
add esp, 0xc
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004c9050
mov eax, dword [esp + 0x120]
add esp, 0xc
test eax, eax
je 0x4c9f01
push eax
call fcn.004c17d0
add esp, 4
lea ecx, [esp + 0x218]
push 0x40
push ecx
call fcn.004c15e0
lea edx, [esp + 0x128]
push 0xf8
push edx
mov word [esp + 0x228], 0x5a4d
mov dword [esp + 0x264], 0x40
call fcn.004c15e0
mov eax, 0x1000
mov ecx, 0x200
mov dword [esp + 0x130], 0x4550
mov word [esp + 0x146], 0x210e
mov word [esp + 0x134], 0x14c
mov dword [esp + 0x160], 0x2000
mov word [esp + 0x136], 3
mov word [esp + 0x144], 0xe0
mov word [esp + 0x148], 0x10b
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x164], 0x10000000
mov dword [esp + 0x168], eax
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x184], ecx
mov dword [esp + 0x19c], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x190], eax
mov ax, word [esi + 0x5c]
push ecx
mov word [esp + 0x190], ax
mov dword [esp + 0x1a8], 0x10
call fcn.004c1680
mov edi, eax
mov byte [edi], pe_nt_image_headers32
mov dword [edi + 1], 1
lea esi, [edi + 1]
mov byte [esi + 4], 0xc2
add esi, 4
mov word [esi + 1], 0xc
add esi, 1
mov byte [esi + 2], 0xe8
add esi, 2
mov dword [esi + 1], 0
mov eax, esi
add esi, 1
mov byte [esi + 4], 0x58
add esi, 4
mov byte [esi + 1], 5
sub eax, edi
mov dword [esp + 0x4c], eax
mov eax, esi
add esi, 1
add esi, 1
mov word [esi + 4], 0xc7
mov ecx, esi
add esi, 4
mov dword [esi + 2], 1
add esi, 2
mov byte [esi + 4], pe_nt_image_headers32
add esi, 4
add esi, 1
mov dword [esi], 1
add esi, 4
mov byte [esi], 0xc2
add esi, 1
mov word [esi], 0xc
add esi, 2
mov ebp, esi
sub ebp, edi
sub eax, edi
mov edx, ebp
sub edx, eax
mov dword [ecx], edx
mov dword [esi], 0
add esi, 4
mov ebx, esi
sub ebx, edi
push 0x28
lea eax, [esp + 0xdc]
push eax
call fcn.004c15e0
lea eax, [ebx + 0x1028]
mov dword [esp + 0xfc], eax
mov ecx, 1
add eax, 4
mov dword [esp + 0x100], eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], ecx
add eax, 4
mov dword [esp + 0xf0], ecx
push 0x28
lea ecx, [esp + 0xe4]
mov dword [esp + 0x108], eax
push ecx
add eax, 2
push esi
mov dword [esp + 0xf8], eax
call fcn.004c1600
mov ecx, dword [esp + 0x294]
add esi, 0x28
add ebp, 0x1000
mov dword [esi], ebp
mov ebp, dword [esp + 0x298]
add ebp, 1
add esi, 4
mov edx, ebp
sub edx, edi
lea eax, [edx + esi + 0x1006]
mov dword [esi], eax
add esi, 4
push ebp
mov word [esi], 0
push ecx
add esi, 2
push esi
call fcn.004c1600
add esp, 0x34
push 0x1007a02c
add esi, ebp
push esi
call dword [0x10078124]
push 0x1007a02c
call dword [0x100780e0]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 0xc0]
sub esi, edi
lea esi, [eax + esi + 1]
xor eax, eax
mov dword [esp + 0x34], esi
sub esi, ebx
cmp ebp, eax
mov dword [esp + 0x2c], 0x24
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
je 0x4ca24c
push ebp
push ecx
call fcn.004c8ce0
add esp, 8
test eax, eax
je 0x4ca24c
mov ecx, dword [eax + 0xc]
mov edx, ebp
sub edx, ecx
cmp edx, dword [eax + 0x10]
jae 0x4ca24c
mov eax, dword [eax + 0x14]
sub eax, ecx
add eax, ebp
je 0x4ca24c
mov ecx, dword [esp + 0x25c]
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [edx + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
mov ebp, eax
sub ebp, ecx
push ebp
push edx
mov dword [esp + 0x2c], eax
call fcn.004c8ce0
add esp, 8
test eax, eax
jne 0x4ca1ea
mov dword [esp + 0x1c], eax
jmp 0x4ca20b
mov ecx, dword [eax + 0xc]
mov edx, ebp
sub edx, ecx
cmp edx, dword [eax + 0x10]
jb 0x4ca200
mov dword [esp + 0x1c], 0
jmp 0x4ca20b
mov eax, dword [eax + 0x14]
sub eax, ecx
add eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov ecx, eax
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
je 0x4ca24c
cmp dword [esp + 0x1c], 0
je 0x4ca24c
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + 0x34]
mov edx, ecx
push eax
push edx
call fcn.004c8de0
add esp, 8
test eax, eax
je 0x4ca24c
mov eax, dword [esp + 0x20]
add eax, 0x24
mov dword [esp + 0x2c], eax
mov byte [esp + 0x16], 1
mov eax, dword [esp + 0x2c]
mov ebp, eax
shr ebp, 2
add ebp, ebp
add ebp, ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jae 0x4ca268
add ebp, 4
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x5c]
lea ecx, [ebp + 0x3000]
push 0x28
push edx
mov dword [esp + 0x1e8], 0x3000
mov dword [esp + 0x1ec], 0x18
mov dword [esp + 0x1cc], 0x12
mov dword [esp + 0x1c8], ecx
call fcn.004c15e0
add esp, 8
push 0x10083bc0
lea eax, [esp + 0x60]
push eax
call dword [0x10078124]
mov edx, dword [esp + 0x34]
lea eax, [ebp + 0x12]
mov ebp, eax
shr ebp, 9
shl ebp, 9
cmp ebp, eax
mov ecx, 0x200
mov dword [esp + 0x68], 0x1000
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x80], 0xe0000060
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ebp
jae 0x4ca2fa
add ebp, ecx
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x9c]
push 0x28
push eax
call fcn.004c15e0
add esp, 8
push 0x10083bb8
lea ecx, [esp + 0xa0]
push ecx
call dword [0x10078124]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xec]
push 0x28
push ecx
mov dword [esp + 0xb0], 0x2000
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xac], 0x1000
mov dword [esp + 0xc8], 0x40000040
call fcn.004c15e0
add esp, 8
push 0x10083bb0
lea edx, [esp + 0xf0]
push edx
call dword [0x10078124]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x68]
mov dword [esp + 0xfc], ebp
xor ebp, ebp
push ebp
add ecx, eax
push 0x80
push 2
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0xb0]
push ebp
mov dword [esp + 0x104], ecx
add edx, ebx
add ecx, 0x3000
cmp dword [esp + 0x288], ebp
push 1
mov dword [esp + 0x10c], 0x3000
mov dword [esp + 0x124], 0xc0000040
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x184], ecx
mov dword [esp + 0x154], eax
push 0x40000000
je 0x4ca40c
mov ebx, dword [esp + 0x60]
push ebx
call fcn.004ba1c0
jmp 0x4ca41b
mov eax, dword [esp + 0x60]
push eax
call dword [0x100781c0]
mov ebx, dword [esp + 0x48]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ca46d
push edi
call fcn.004c17d0
add esp, 4
cmp ebx, ebp
je 0x4ca438
push ebx
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x260]
cmp eax, ebp
je 0x4ca44c
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x26c]
cmp eax, ebp
je 0x4ca460
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x248
ret
mov ebx, dword [0x10078094]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x40
lea edx, [esp + 0x224]
push edx
push esi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
push 0xf8
lea ecx, [esp + 0x12c]
push ecx
push esi
call ebx
push ebp
lea edx, [esp + 0x14]
push edx
push 0x28
lea eax, [esp + 0x68]
push eax
push esi
call ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x28
lea edx, [esp + 0xa8]
push edx
push esi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
push 0x28
lea ecx, [esp + 0xf8]
push ecx
push esi
call ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x17], 0
mov ebp, 0x50
push 0
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push esi
call ebx
sub ebp, 1
jne 0x4ca4e4
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
push edi
push esi
call ebx
lea edx, [esp + 0x84]
push 0x18
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x15c]
add esp, 8
cmp byte [esp + 0x16], 0
je 0x4ca552
mov edx, dword [esp + 0x20]
lea ecx, [eax + 0x3024]
mov dword [esp + 0x84], ecx
add ecx, edx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x94], edx
push 0
lea ecx, [eax + 0x3018]
add eax, 0x301c
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x98], eax
push 0x18
lea eax, [esp + 0x90]
push eax
push esi
mov dword [esp + 0xa0], ecx
call ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x50]
push edx
push esi
call ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx + 0x10000000]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x4c]
push ecx
push esi
mov dword [esp + 0x54], edx
call ebx
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x48]
push eax
push esi
call ebx
cmp byte [esp + 0x16], 0
je 0x4ca5e9
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x264]
push edx
add eax, ecx
push eax
push esi
call ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
cmp eax, ebp
jae 0x4ca60d
sub ebp, eax
push 0
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push esi
call ebx
sub ebp, 1
jne 0x4ca5f7
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esp + 0x60]
push edx
push esi
mov dword [esp + 0x6c], 0x12
mov dword [esp + 0x68], 0x3000
call ebx
xor ebp, ebp
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [ebp*4 + 0x3000]
movzx ecx, ax
push 2
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x3c], ecx
call ebx
add ebp, 1
cmp ebp, 4
jb 0x4ca630
push 0
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x3c], 0x301c
call ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x4ca696
sub eax, ecx
mov ebp, eax
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x23]
push ecx
push esi
call ebx
sub ebp, 1
jne 0x4ca680
push esi
call dword [0x1007810c]
push edi
call fcn.004c17d0
mov eax, dword [esp + 0x4c]
add esp, 4
test eax, eax
je 0x4ca6b7
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x260]
test eax, eax
je 0x4ca6cb
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [esp + 0x26c]
test eax, eax
je 0x4ca6df
push eax
call fcn.004c17d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x248
ret