Function at 0x50b810
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551356
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
mov eax, 0x11a0
call fcn.004d1d50
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], 0
push 0x30
push 0
lea eax, [ebp - 0xc0]
push eax
call fcn.00522010
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
lea ecx, [ebp - 0xcc]
call fcn.004d6ad0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.005030f0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
jmp 0x50b8ab
mov ecx, dword [ebp - 0xc0]
add ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xbc]
adc edx, dword [ebp - 0xa4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x14]
call fcn.005030d0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x7c]
ja 0x50bcda
jb 0x50b8d3
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x80]
jae 0x50bcda
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xc000000d
je 0x50b911
cmp dword [ebp - 0x18], 0xc0000022
je 0x50b911
cmp dword [ebp - 0x18], 0xc000010a
jne 0x50b918
jmp 0x50bcda
cmp dword [ebp - 0x18], 0
je 0x50b923
jmp 0x50b88d
cmp dword [ebp - 0xa0], 0x1000
jne 0x50b951
cmp dword [ebp - 0x98], 0x1000000
jne 0x50b951
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0xb8]
jne 0x50b956
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0xb4]
jne 0x50b956
jmp 0x50b88d
push 0x1000
push 0
lea ecx, [ebp - 0x11a8]
push ecx
call fcn.00522010
add esp, 0xc
lea edx, [ebp - 0x9a8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x74], edx
push 0x800
mov eax, dword [ebp - 0x20]
push eax
push 2
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x74]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x50bcc3
lea ecx, [ebp - 0x130]
call fcn.004d6fa0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11a8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x78], eax
push 0
push 0x800
lea ecx, [ebp - 0x11a8]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x78]
test eax, eax
je 0x50ba17
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.004d7a70
jmp 0x50b88d
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x3c]
lea eax, [ebp + edx - 0x11a8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x50ba49
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
je 0x50bb0f
push 0x30
push 0
lea edx, [ebp - 0x160]
push edx
call fcn.00522010
add esp, 0xc
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x50ba8e
mov edx, dword [ebp - 0x160]
add edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x15c]
adc eax, dword [ebp - 0x144]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
call fcn.005030d0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x84]
ja 0x50bb03
jb 0x50baba
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x88]
jae 0x50bb03
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x4c]
test eax, eax
jl 0x50baea
cmp dword [ebp - 0x138], 0x1000000
je 0x50bafe
mov eax, dword [ebp - 0x160]
sub eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf8], eax
jmp 0x50bb03
jmp 0x50ba70
mov dword [ebp - 0xf4], 3
jmp 0x50bb70
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x50bb36
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], 0
jmp 0x50bb70
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
jne 0x50bb5c
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], 1
jmp 0x50bb70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.004d7a70
jmp 0x50b88d
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0xe]
cmp ecx, 1
jne 0x50bbcd
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd4], esp
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 4]
push edx
call fcn.0041e0f0
lea eax, [ebp - 0x178]
push eax
call fcn.004e3140
add esp, 0x1c
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x110]
call fcn.0041e010
lea ecx, [ebp - 0x178]
call fcn.0041dfb0
jmp 0x50bc16
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
push edx
call fcn.0041e0f0
lea eax, [ebp - 0x190]
push eax
call fcn.004e3140
add esp, 0x1c
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x110]
call fcn.0041e010
lea ecx, [ebp - 0x190]
call fcn.0041dfb0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004e3090
add esp, 8
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x128]
call fcn.0041e010
lea ecx, [ebp - 0x1a8]
call fcn.0041dfb0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0xf0], xmm0
mov byte [ebp - 0xe8], 0
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0xdc]
push eax
call fcn.004f3690
add esp, 8
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0xcc]
call fcn.0050ad10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.00420320
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.004d7a70
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x50b88d
lea edx, [ebp - 0xcc]
push edx
mov ecx, dword [ebx + 8]
call fcn.004e6790
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004f3d60
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4