Function at 0x50b370
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 0x551316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
mov eax, 0x11e0
call fcn.004d1d50
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], 0
push 0x30
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.00522010
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
lea ecx, [ebp - 0xbc]
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 0x50b40b
mov ecx, dword [ebp - 0xb0]
add ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xac]
adc edx, dword [ebp - 0x94]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x14]
call fcn.005030d0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x74]
ja 0x50b7c3
jb 0x50b433
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x78]
jae 0x50b7c3
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xc000000d
je 0x50b471
cmp dword [ebp - 0x1c], 0xc0000022
je 0x50b471
cmp dword [ebp - 0x1c], 0xc000010a
jne 0x50b478
jmp 0x50b7c3
cmp dword [ebp - 0x1c], 0
je 0x50b483
jmp 0x50b3ed
cmp dword [ebp - 0x90], 0x1000
jne 0x50b4bc
cmp dword [ebp - 0xa0], 1
je 0x50b4bc
mov edx, dword [ebp - 0xa0]
and edx, 0x100
jne 0x50b4bc
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0xa8]
jne 0x50b4c1
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0xa4]
jne 0x50b4c1
jmp 0x50b3ed
lea ecx, [ebp - 0x110]
call fcn.004d6fa0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x11e8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
push 0
push 0x1000
lea eax, [ebp - 0x11e8]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x48]
test eax, eax
je 0x50b52c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.004d7a70
jmp 0x50b3ed
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x3c]
lea edx, [ebp + ecx - 0x11e8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x50b55b
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
je 0x50b56f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.004d7a70
jmp 0x50b3ed
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x50b596
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], 0
jmp 0x50b5ba
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x18]
cmp eax, 0x20b
jne 0x50b5ba
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], 1
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0xd0], xmm0
mov byte [ebp - 0xc8], 0
lea edx, [ebp - 0x11e8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x4c], edx
push 0x1000
mov eax, dword [ebp - 0x20]
push eax
push 2
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov ecx, dword [ebp - 0x14]
call dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x50b6ff
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0xe]
cmp ecx, 1
jne 0x50b681
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x114], esp
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 4]
push edx
call fcn.0041e0f0
lea eax, [ebp - 0x138]
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 - 0xf0]
call fcn.0041e010
lea ecx, [ebp - 0x138]
call fcn.0041dfb0
jmp 0x50b6ca
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x118], esp
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
push edx
call fcn.0041e0f0
lea eax, [ebp - 0x150]
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 - 0xf0]
call fcn.0041e010
lea ecx, [ebp - 0x150]
call fcn.0041dfb0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.004e3090
add esp, 8
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x108]
call fcn.0041e010
lea ecx, [ebp - 0x168]
call fcn.0041dfb0
jmp 0x50b75c
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x1e8]
push eax
call fcn.00522010
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x110]
push edx
push str.Unknown_0x_I64x
lea eax, [ebp - 0x1e8]
push eax
call 0x156e661
ret
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.004f3690
add esp, 8
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0050ad10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00420320
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x110]
call fcn.004d7a70
jmp 0x50b3ed
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebx + 8]
call fcn.004e6790
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
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