Function at 0x1004c460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1beb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x100e3008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x228], ebx
call fcn.1004dbe0
test ebx, ebx
je 0x1004c7ee
test esi, esi
je 0x1004c7ee
cmp dword [edi + 0xa4], esi
je 0x1004c4e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x1004c4de
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [edi + 0xa4], esi
mov eax, dword [ebx]
lea esi, [edi + 0x18]
push esi
push 0
push 0
push 0
mov ecx, ebx
call dword [eax + 0x14]
test eax, eax
jne 0x1004c7f3
push 0x200
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.1009e470
mov eax, dword [esi]
or edx, 0xffffffff
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - method.RC::RCBuffer_unsigned_char_.virtual_0], vtable.RC::RCBuffer_unsigned_char_.0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
push 0x10000
mov dword [ebp - 4], 0
call fcn.1009c164
mov esi, eax
mov dword [ebp - 0x244], 0x10000
add esp, 0x10
mov dword [ebp - 0x240], esi
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x10000
push eax
mov edx, esi
mov ecx, ebx
call fcn.1008e5c0
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1004cb7d
mov eax, dword [ebp - 0x234]
cmp eax, 0x1c
jb 0x1004c7e1
xor ecx, ecx
mov dword [ebp - 0x220], ecx
test eax, eax
je 0x1004c590
nop word [eax + eax]
sub eax, ecx
mov edx, 0x200
cmp eax, 0x200
cmovae eax, edx
mov dword [ebp - 0x22c], eax
cmp eax, 0x1c
jb 0x1004c7e1
push eax
lea eax, [ecx + esi]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.1009d910
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x100e3810
mov ebx, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004ca61
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x1004c622
mov edx, dword [ebp - 0x230]
mov eax, edx
mov ecx, dword [ebp - 0x21c]
and eax, ecx
cmp eax, 0xffffffff
jne 0x1004c81d
mov ebx, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x1004c670
cmp ebx, 0x200
jb 0x1004c77b
nop word [eax + eax]
mov edx, dword [ebp - 0x224]
add ebx, 0xfffffe00
mov eax, dword [ebp - 0x218]
adc ecx, 0xffffffff
sub edx, ebx
mov dword [ebp - 0x234], ecx
sbb eax, ecx
test eax, eax
ja 0x1004c77b
jb 0x1004c6a5
cmp edx, 0x100000
ja 0x1004c77b
mov edx, dword [ebp - 0x228]
push 0
push 0
push ecx
mov eax, dword [edx]
mov ecx, edx
push ebx
mov dword [ebp - 0x22c], 0x200
call dword [eax + 0x14]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1004cb7d
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp - 0x214]
call fcn.1008e5c0
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1004cb7d
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0x200
jb 0x1004c77b
cmp ecx, 2
jb 0x1004c75e
mov eax, dword [ebp - 0x214]
cmp al, 0x4d
jne 0x1004c75e
cmp ah, 0x5a
jne 0x1004c75e
cmp ecx, 0x40
jb 0x1004c75e
mov edx, dword [ebp - 0x1d8]
lea eax, [edx - 0x40]
cmp eax, 0xfc0
ja 0x1004c739
test dl, 7
jne 0x1004c739
mov al, 1
jmp 0x1004c73b
xor al, al
test al, al
je 0x1004c75e
lea eax, [edx + 0x18]
cmp eax, ecx
ja 0x1004c75e
cmp dword [ebp + edx - 0x214], 0x4550
jne 0x1004c75e
cmp word [ebp + edx - 0x200], 0x60
jae 0x1004c769
mov ecx, dword [ebp - 0x234]
jmp 0x1004c656
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x218]
push 0
push 0
mov eax, dword [ecx]
push edx
push dword [ebp - 0x224]
mov dword [ebp - 0x22c], 0x200
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jne 0x1004ca4d
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x22c]
push eax
lea edx, [ebp - 0x214]
call fcn.1008e5c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004ca4d
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
cmp eax, 0x1c
jae 0x1004c811
test esi, esi
je 0x1004c7ee
push esi
call fcn.1009bd9b
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x224]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x218]
mov dword [edi + 0x1c], eax
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x1004c86a
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x218]
sub ecx, edx
sbb eax, dword [ebp - 0x21c]
test eax, eax
ja 0x1004c86a
jb 0x1004c85c
cmp ecx, 0x100000
jae 0x1004c86a
mov eax, dword [ebp - 0x21c]
mov ebx, ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x218]
add ecx, 0x1c
mov dword [edi + 0x20], ecx
adc eax, 0
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x214]
mov dword [edi + 0x6c], eax
test eax, 0xfffffff0
jne 0x1004c7e1
not al
and al, 1
mov byte [edi + 0x84], al
mov eax, dword [ebp - 0x200]
mov dword [edi + 0x70], eax
mov eax, dword [ebp - 0x1fc]
mov dword [edi + 0x74], eax
cmp eax, 0x1c
jbe 0x1004c7e1
mov ecx, dword [ebp - 0x228]
lea eax, [edi + 0x88]
push eax
push 2
push 0
mov edx, dword [ecx]
push 0
call dword [edx + 0x14]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x1004cb7d
test ebx, ebx
je 0x1004c95a
push ebx
lea ecx, [edi + 0x90]
call fcn.1001e1d0
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x230]
push 0
push 0
push dword [ebp - 0x21c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1004c92d
lea ecx, [ebp - 0x248]
call fcn.1001e1a0
mov eax, dword [ebp - 0x220]
jmp 0x1004c7f3
mov edx, dword [edi + 0x98]
mov ecx, dword [ebp - 0x228]
push ebx
call fcn.1008e620
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004c95a
lea ecx, [ebp - 0x248]
call fcn.1001e1a0
mov eax, ebx
jmp 0x1004c7f3
push 0x38
mov byte [ebp - 4], 1
call fcn.1009bda0
add esp, 4
mov ecx, eax
call fcn.10098d80
mov ebx, eax
test ebx, ebx
je 0x1004c97a
lea eax, [ebx + 8]
jmp 0x1004c97c
xor eax, eax
push eax
lea ecx, [edi + 0xa0]
call fcn.1001e170
mov ecx, dword [ebp - 0x228]
cmp dword [ebx + 0x10], ecx
je 0x1004c9ad
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1004c9a4
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x228]
mov dword [ebx + 0x10], eax
push 0
push dword [edi + 0x74]
mov ecx, ebx
push dword [ebp - 0x218]
push dword [ebp - 0x224]
call fcn.10098f10
mov eax, dword [ebp - 0x224]
mov ecx, edi
sub dword [edi + 0x20], eax
mov eax, dword [ebp - 0x218]
sbb dword [edi + 0x24], eax
mov eax, dword [ebp - 0x22c]
add eax, 0xffffffe4
push eax
lea eax, [ebp - 0x1f8]
push eax
push dword [ebp - 0x238]
call fcn.1004c190
mov ebx, eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1004ca4d
jmp 0x1004ca2d
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x1004ca46
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [edi + 0xa0], 0
mov ecx, edi
call fcn.1004dbe0
test esi, esi
je 0x1004ca5a
push esi
call fcn.1009bd9b
add esp, 4
mov eax, ebx
jmp 0x1004c7f3
mov edx, dword [ebp - 0x22c]
cmp edx, 2
jb 0x1004cad8
mov eax, dword [ebp - 0x214]
cmp al, 0x4d
jne 0x1004cad8
cmp ah, 0x5a
jne 0x1004cad8
cmp edx, 0x40
jb 0x1004cad8
mov ecx, dword [ebp - 0x1d8]
lea eax, [ecx - 0x40]
cmp eax, 0xfc0
ja 0x1004ca99
test cl, 7
jne 0x1004ca99
mov al, 1
jmp 0x1004ca9b
xor al, al
test al, al
je 0x1004cad8
lea eax, [ecx + 0x18]
cmp eax, edx
ja 0x1004cad8
cmp dword [ebp + ecx - 0x214], 0x4550
jne 0x1004cad8
cmp word [ebp + ecx - 0x200], 0x60
mov edx, dword [ebp - 0x218]
jb 0x1004cade
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x21c], edx
jmp 0x1004cade
mov edx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x230]
add ecx, 0x200
mov dword [ebp - 0x224], ecx
adc edx, 0
mov dword [ebp - 0x218], edx
mov edx, ecx
sub edx, dword [edi + 0x18]
mov ecx, dword [ebp - 0x218]
sbb ecx, dword [edi + 0x1c]
cmp dword [ebp + 0x10], 0
je 0x1004cb52
mov ebx, dword [ebp + 0x10]
cmp ecx, dword [ebx + 4]
mov ebx, dword [ebp - 0x21c]
jb 0x1004cb52
ja 0x1004cb30
mov eax, dword [ebp + 0x10]
cmp edx, dword [eax]
mov eax, dword [ebp - 0x230]
jbe 0x1004cb52
or eax, ebx
jne 0x1004cb42
test ecx, ecx
ja 0x1004cb42
jb 0x1004cb52
cmp edx, 0x100000
jbe 0x1004cb52
lea ecx, [ebp - 0x248]
call fcn.1001e1a0
jmp 0x1004c7ee
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x234]
add ecx, 0x200
mov dword [ebp - 0x220], ecx
cmp ecx, eax
jb 0x1004c5e0
mov ebx, dword [ebp - 0x228]
jmp 0x1004c590
test esi, esi
je 0x1004c7f3
push esi
call fcn.1009bd9b
mov eax, dword [ebp - 0x220]
add esp, 4
jmp 0x1004c7f3