Function at 0xb782c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.000840a8
lea eax, [ebp - 8]
call fcn.000840a8
xor eax, eax
push ebp
push 0xb8083
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 8]
call fcn.00083b84
push 0xb809c
push dword [ebp - 4]
push 0xb809c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00083db8
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
mov edx, ebx
call fcn.00083660
mov eax, dword [ebp - 0x78]
call fcn.00083798
cdq
push edx
push eax
mov eax, dword [ebp + 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0xb78f2
cmp eax, dword [esp]
pop edx
pop eax
jbe 0xb78fa
jmp 0xb803b
pop edx
pop eax
jg 0xb803b
lea eax, [ebp - 0x78]
call fcn.00083968
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x5a4d
jne 0xb803b
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0xb803b
lea eax, [ebp - 0xd0]
xor ecx, ecx
mov edx, 0x44
call fcn.00082884
lea eax, [ebp - 0x8c]
xor ecx, ecx
mov edx, 0x10
call fcn.00082884
mov dword [ebp - 0xd0], 0x44
mov dword [ebp - 0xa4], 0x80
cmp byte [ebp + 0xc], 0
je 0xb7a39
mov eax, dword [0xd6a78]
cmp dword [eax], 0
je 0xb7a39
mov eax, dword [0xd6aa8]
cmp byte [eax], 0
je 0xb7a39
mov eax, dword [0xd69c4]
cmp byte [eax], 0
jne 0xb7a39
mov eax, dword [0xd6c5c]
cmp byte [eax], 0
je 0xb79f1
mov ecx, dword [0xd6c6c]
mov ecx, dword [ecx]
mov edx, dword [0xd6c2c]
mov edx, dword [edx]
lea eax, [ebp - 0x22c]
call fcn.000837e4
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00087dbc
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
mov edx, 0xb80a8
call fcn.000837e4
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x70]
call fcn.00083cc8
jmp 0xb7a2b
mov ecx, dword [0xd6c6c]
mov ecx, dword [ecx]
mov edx, dword [0xd6c2c]
mov edx, dword [edx]
lea eax, [ebp - 0x234]
call fcn.000837e4
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00087dbc
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x70]
call fcn.00083cc8
mov eax, dword [ebp - 0x70]
call fcn.00083cd8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 4]
mov eax, 0xb80b8
call fcn.00084014
test eax, eax
je 0xb7a60
mov edx, dword [ebp - 4]
mov eax, 0xb80b8
call fcn.00084014
cmp eax, 4
jge 0xb7a60
xor eax, eax
jmp 0xb7a62
mov al, 1
test al, al
je 0xb7a9b
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00083cd8
push eax
push 0
call fcn.00086654
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x55], al
jmp 0xb7ad5
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xd0]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00083cd8
push eax
mov eax, dword [ebp - 4]
call fcn.00083cd8
push eax
call fcn.00086654
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x55], al
push 0x3e8
call fcn.00086844
cmp byte [ebp - 0x55], 1
jne 0xb803b
cmp byte [ebp + 8], 0
je 0xb7b29
mov eax, dword [ebp - 0x8c]
call fcn.000bea20
cmp al, 1
jne 0xb7b29
push 0
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0008684c
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0008661c
mov eax, dword [ebp - 0x88]
push eax
call fcn.0008661c
jmp 0xb803b
push 0
push 0x18
lea eax, [ebp - 0x220]
push eax
push 0
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000c54e0
test eax, eax
jne 0xb7ff4
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x21c]
add eax, 8
push eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000867f4
neg eax
sbb eax, eax
neg eax
test al, al
je 0xb7ff4
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000867f4
neg eax
sbb eax, eax
neg eax
test al, al
je 0xb7ff4
lea eax, [ebp - 0x18]
push eax
push 0xf8
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xd4]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000867f4
neg eax
sbb eax, eax
neg eax
test al, al
je 0xb7ff4
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x1b8]
call fcn.00083acc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x5c]
call fcn.00083968
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000867f4
neg eax
sbb eax, eax
neg eax
test al, al
je 0xb7ff4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x50]
add eax, eax
mov dword [ebp - 0x28], eax
mov eax, 0xb7828
sub eax, 0xb75b0
add eax, 8
add eax, 0xc
mov dword [ebp - 0x30], eax
push 0
push 0x8000000
push 0x40
lea eax, [ebp - 0x20]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x4c]
push eax
call fcn.000c54f8
test eax, eax
jne 0xb7ff4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.000c54e8
test eax, eax
jne 0xb7ff4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
push 0x40
push 0
push 1
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
push 0x40
push 0
push 1
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.000866cc
push eax
mov eax, dword [ebp - 0x4c]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
push 0
push 0x8000000
push 0x40
lea eax, [ebp - 0x28]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x50]
push eax
call fcn.000c54f8
test eax, eax
jne 0xb7ff4
push 0x40
push 0
push 1
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.000866cc
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
push 0x40
push 0
push 1
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
push 0
push 0x8000000
push 0x40
lea eax, [ebp - 0x30]
push eax
push 0
push 0xf001f
lea eax, [ebp - 0x54]
push eax
call fcn.000c54f8
test eax, eax
jne 0xb7ff4
push 0x40
push 0
push 1
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.000866cc
push eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
push 0x40
push 0
push 1
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.000c54f0
test eax, eax
jne 0xb7ff4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x68]
mov ecx, 8
mov eax, dword [ebp - 0x44]
call fcn.000869a8
mov ecx, 0xb7828
sub ecx, 0xb75b0
mov edx, 0xb75b0
mov eax, dword [ebp - 0x44]
add eax, 8
call fcn.000869a8
lea eax, [ebp - 0x5c]
call fcn.00083968
mov edx, eax
mov ecx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x34]
call fcn.000869a8
mov edx, 0xd6634
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1e0]
mov ecx, 5
call fcn.000869a8
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1e0]
inc eax
mov ecx, 4
call fcn.000869a8
mov eax, dword [ebp - 0x48]
add eax, 8
mov dword [ebp - 0x74], eax
mov edx, 0xd663c
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1e0]
add eax, 5
mov ecx, 7
call fcn.000869a8
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1e0]
add eax, 5
inc eax
mov ecx, 4
call fcn.000869a8
mov ecx, dword [esi + 0x54]
mov edx, ebx
mov eax, dword [ebp - 0x38]
call fcn.000869a8
lea edx, [ebp + 0x14]
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x38]
mov ecx, 4
call fcn.000869a8
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x38]
add eax, 4
mov ecx, dword [ebp + 0x14]
mov edx, ebx
call fcn.000869a8
mov eax, dword [ebp - 0x6c]
call fcn.00083ce8
inc eax
add eax, eax
push eax
mov eax, dword [ebp - 0x6c]
call fcn.00083cd8
mov edx, eax
mov eax, dword [esi + 0x50]
add eax, dword [ebp - 0x38]
add eax, 4
add eax, dword [ebp + 0x14]
pop ecx
call fcn.000869a8
movzx eax, word [esi + 6]
dec eax
test eax, eax
jl 0xb7f69
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, ebx
add eax, edx
add eax, 0xf8
mov ecx, dword [ebp - 0x60]
shl ecx, 3
lea ecx, [ecx + ecx*4]
add eax, ecx
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
add edi, dword [ebp - 0x38]
push edi
mov eax, dword [eax + 0x14]
add eax, edx
mov edx, eax
pop eax
call fcn.000869a8
inc dword [ebp - 0x60]
dec dword [ebp - 0x7c]
jne 0xb7f30
mov edx, dword [esi + 0x34]
mov eax, dword [ebp - 0x3c]
cmp edx, eax
je 0xb7f9b
sub eax, edx
push eax
push esi
mov eax, dword [ebp - 0x38]
push eax
call fcn.000b6f7c
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x38]
mov ecx, 0xf8
mov edx, esi
call fcn.000869a8
mov eax, dword [ebp - 0x38]
push eax
call fcn.000866cc
push eax
call fcn.000c54e8
mov eax, dword [ebp - 0x34]
push eax
call fcn.000866cc
push eax
call fcn.000c54e8
mov eax, dword [ebp - 0x44]
push eax
call fcn.000866cc
push eax
call fcn.000c54e8
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.00086804
cmp eax, 0xffffffff
je 0xb7ff4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x84]
mov dword [eax], edx
cmp dword [ebp - 0xc], 0
jne 0xb8014
push 0
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0008684c
mov eax, dword [ebp - 0x8c]
push eax
call fcn.0008661c
mov eax, dword [ebp - 0x50]
push eax
call fcn.0008661c
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0008661c
mov eax, dword [ebp - 0x88]
push eax
call fcn.0008661c
mov eax, dword [ebp - 0x54]
push eax
call fcn.0008661c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb808a
lea eax, [ebp - 0x234]
mov edx, 5
call fcn.0008359c
lea eax, [ebp - 0x78]
call fcn.00083578
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.00083b60
lea eax, [ebp - 0x5c]
call fcn.00083578
lea eax, [ebp - 8]
mov edx, 2
call fcn.00083b60
ret