Function at 0x403100
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x435028
push 0x40d8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x437040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x10]
mov ebx, edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
xor esi, esi
mov dword [ebp - 0x4c], esi
cmp dword [ebp + 0x18], esi
je 0x403185
mov eax, 0xc00000f3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], esi
mov dword [eax], 0
test ecx, ecx
je 0x403198
mov dword [ecx], 0
lea edx, [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
call fcn.004051e0
test al, al
jne 0x4031b8
test edi, 0x40000000
mov eax, 0xc000007b
cmove esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x50]
jmp 0x4031f3
test esi, esi
js 0x403bc9
and edi, 0x10000000
mov edx, edi
cmove edx, ebx
mov dword [ebp - 0x1c], edx
xor ebx, ebx
test edi, edi
cmove ebx, eax
mov dword [ebp - 0x3c], ebx
xor eax, eax
test edi, edi
cmove eax, ecx
mov dword [ebp - 0x28], eax
test dl, 4
je 0x403232
test eax, eax
je 0x40342e
test ebx, ebx
je 0x40342e
test eax, eax
je 0x40335b
mov ebx, eax
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x403240
sub ebx, ecx
sar ebx, 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov dword [ebp - 0x50], eax
mov esi, dword [eax]
mov dword [ebp - 0x44], esi
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
call edi
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x403291
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, dword [ebp - 0x50]
je 0x40335b
nop word [eax + eax]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
cmp dword [esi + 8], 0
je 0x40334f
movzx eax, word [esi + 0x2c]
shr eax, 1
sub eax, ebx
je 0x4032c5
cmp eax, 4
jne 0x40334f
push ebx
push dword [esi + 0x30]
push dword [ebp - 0x28]
call fcn.00415dbf
add esp, 0xc
test eax, eax
jne 0x40334f
push dword [esi + 0x18]
call edi
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x40334f
mov edi, dword [esi + 0x18]
test edi, edi
je 0x40332c
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x403329
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 6]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*8]
add ecx, 0xf8
add ecx, edi
cmp dword [ecx], 0x11ffee00
jne 0x403329
cmp dword [ecx + 4], 0xaabbcc
jne 0x403329
cmp dword [ecx + 0x10], edi
jne 0x403329
mov edx, dword [ebp - 0x40]
jmp 0x40332e
mov edx, dword [ebp - 0x40]
xor ecx, ecx
test ecx, ecx
je 0x403349
mov edi, dword [ebp - 0x48]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edx + 0x1c]
jne 0x403349
mov eax, dword [edi + 0x54]
cmp eax, dword [edx + 0x54]
je 0x4033d5
mov edi, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov esi, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x50]
jne 0x4032a0
push dword [ebp + 0x18]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
call fcn.00404110
add esp, 4
test eax, eax
js 0x403bcb
cmp eax, 0x4000000e
je 0x403bcb
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
mov ebx, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test esi, esi
je 0x40344a
push esi
call ebx
test eax, eax
je 0x403447
mov ecx, dword [esi + 0x3c]
movzx eax, word [ecx + esi + 6]
lea edi, [eax*4 + 0x1f]
add edi, eax
lea edi, [ecx + edi*8]
add edi, esi
mov dword [ebp - 0x2c], edi
cmp dword [edi], 0x11ffee00
jne 0x403447
cmp dword [edi + 4], 0xaabbcc
jne 0x403447
cmp dword [edi + 0x10], esi
jne 0x403447
mov eax, dword [ebp - 0x20]
jmp 0x40344f
test byte [ecx + 0xe], 8
je 0x40342e
mov eax, dword [ebp - 0x1c]
test al, 2
jne 0x40342e
mov edx, dword [ecx + 0x20]
cmp edx, 0xffffffff
je 0x403407
mov eax, dword [ecx + 0x2c]
mov edi, 0xffff
cmp word [eax + 0x38], di
jne 0x403401
mov dword [ecx + 0x20], 0xffffffff
jmp 0x403407
lea eax, [edx + 1]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x403418
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc00000f1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x40346b
mov ecx, 7
int 0x29
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0xc0000141
call dword [sym.imp.KERNEL32.dll_ExitProcess]
or byte [edi + 0xc], 2
push dword [eax]
call ebx
mov ebx, eax
mov dword [ebp - 0x48], ebx
mov eax, 0x400
test word [ebx + 0x5e], ax
mov eax, dword [ebp - 0x1c]
je 0x40348c
or eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
test eax, 0x10000000
je 0x4035a6
push edi
mov edx, ebx
call fcn.004071e0
add esp, 4
mov ebx, eax
test ebx, ebx
js 0x403519
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
call fcn.00404040
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
js 0x403519
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x38], esi
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x403503
mov esi, dword [eax + esi + 0xc]
test esi, esi
je 0x403503
mov eax, dword [esi]
test eax, eax
je 0x403503
mov ebx, dword [ebp - 0x38]
nop dword [eax + eax]
push 0
push 1
push ebx
call eax
lea esi, [esi + 4]
mov eax, dword [esi]
test eax, eax
jne 0x4034f0
mov ebx, dword [ebp - 0x48]
mov ecx, edi
call fcn.00404ea0
test eax, eax
jne 0x403515
mov ebx, 0xc0000142
jmp 0x403519
test ebx, ebx
jns 0x403590
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
test edi, edi
je 0x403559
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x403559
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 6]
lea esi, [eax*4 + 0x1f]
add esi, eax
lea esi, [ecx + esi*8]
add esi, edi
cmp dword [esi], 0x11ffee00
jne 0x403559
cmp dword [esi + 4], 0xaabbcc
jne 0x403559
cmp dword [esi + 0x10], edi
je 0x40355b
xor esi, esi
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test esi, esi
je 0x403590
mov al, byte [esi + 0xc]
and al, 6
cmp al, 2
je 0x403590
cmp dword [esi + 0x18], 0
je 0x40357c
mov ecx, esi
call fcn.00407150
cmp dword [esi + 0x10], 0
je 0x403590
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea edx, [ebp - 0x4c]
push edx
push dword [ebp - 0x3c]
push dword [ebp - 0x28]
mov edx, eax
call fcn.00402e80
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
js 0x40385c
or word [edi + 0xe], 1
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x2c], eax
push edi
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.004071e0
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
js 0x40385c
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call fcn.00404040
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
js 0x40385c
mov eax, dword [ebp - 0x1c]
test al, 2
jne 0x403611
or word [edi + 0xe], 8
test al, 1
jne 0x4036f9
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [0x438ce4]
mov eax, dword [ecx + 0x40]
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x403641
mov esi, 0xc00000bb
jmp 0x4036e9
mov edx, dword [ecx + 8]
cmp edx, 6
jne 0x40365f
mov eax, dword [ecx + 0xc]
cmp eax, 3
jne 0x403656
lea ebx, [edx - 5]
jmp 0x40366a
mov ecx, 3
cmp ecx, eax
jmp 0x403666
mov eax, 6
cmp eax, edx
sbb ebx, ebx
neg ebx
test bl, bl
je 0x403681
mov ecx, 4
call fcn.00405680
mov esi, eax
test esi, esi
js 0x4036e9
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ecx, esi
call fcn.004054e0
add esp, 4
test bl, bl
mov ebx, 2
je 0x4036aa
mov ecx, ebx
call fcn.00405680
mov esi, eax
test esi, esi
js 0x4036e9
mov esi, dword [ebp - 0x28]
mov eax, dword [0x438ce4]
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x4036c8
mov eax, dword [eax + 0xc]
cmp eax, 2
jne 0x4036c4
lea eax, [ecx - 5]
jmp 0x4036d3
cmp ebx, eax
jmp 0x4036cf
mov eax, 6
cmp eax, ecx
sbb eax, eax
neg eax
test eax, eax
je 0x4036dc
mov esi, dword [esi + 0xc]
jmp 0x4036df
mov esi, dword [esi + 8]
neg esi
sbb esi, esi
and esi, 0xc0000017
mov dword [ebp - 0x24], esi
test esi, esi
js 0x40385c
or word [edi + 0xe], 2
mov ebx, dword [ebp - 0x1c]
test bl, 8
jne 0x403735
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x54]
push dword [ebp - 0x4c]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jns 0x403730
test ebx, 0x20000000
je 0x40383b
mov esi, 0x7fffffff
mov dword [ebp - 0x24], esi
jmp 0x403735
or word [edi + 0xe], 4
test bl, 0x10
je 0x40373f
call fcn.004062f0
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x3c], ebx
push ebx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x40377a
mov ebx, dword [eax + ebx + 0xc]
test ebx, ebx
je 0x40377a
mov eax, dword [ebx]
test eax, eax
je 0x40377a
mov edi, dword [ebp - 0x3c]
push 0
push 1
push edi
call eax
lea ebx, [ebx + 4]
mov eax, dword [ebx]
test eax, eax
jne 0x403767
mov edi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00404ea0
test eax, eax
je 0x403854
mov eax, dword [ebp - 0x1c]
test al, 0x10
je 0x40383b
push str.mscoreei.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40383b
push str.GetFileVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x438ce4]
mov ecx, dword [ecx + 0x4c]
mov dword [ecx + 0x54], eax
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x4c]
cmp dword [eax + 0x54], 0
je 0x40383b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x4c]
cmp byte [eax + 0x28], 0
je 0x403826
cmp byte [eax + 0x29], 0
jne 0x403826
call fcn.004078d0
call fcn.00407dd0
sub esp, 0xc
mov eax, dword [0x438ce4]
mov ecx, dword [eax + 0x4c]
add ecx, 0x54
mov edx, 0x4061b0
call fcn.00407e50
call fcn.00407970
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x4c]
mov byte [eax + 0x29], 1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x24]
test esi, esi
js 0x40385c
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x403bc9
mov eax, dword [ebp - 0x4c]
mov dword [ecx], eax
jmp 0x403bc9
mov esi, 0xc0000142
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
test edi, edi
je 0x40389f
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x40389f
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 6]
lea ebx, [eax*4 + 0x1f]
add ebx, eax
lea ebx, [ecx + ebx*8]
add ebx, edi
cmp dword [ebx], 0x11ffee00
jne 0x40389f
cmp dword [ebx + 4], 0xaabbcc
jne 0x40389f
cmp dword [ebx + 0x10], edi
je 0x4038a1
xor ebx, ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x403bc0
mov cl, byte [ebx + 0xc]
test cl, 2
je 0x403bc0
movzx eax, word [ebx + 0xe]
test al, 1
jne 0x403954
or cl, 4
mov byte [ebx + 0xc], cl
test edi, edi
je 0x40390c
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x40390c
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 6]
lea ebx, [eax*4 + 0x1f]
add ebx, eax
lea ebx, [ecx + ebx*8]
add ebx, edi
cmp dword [ebx], 0x11ffee00
jne 0x40390c
cmp dword [ebx + 4], 0xaabbcc
jne 0x40390c
cmp dword [ebx + 0x10], edi
je 0x40390e
xor ebx, ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test ebx, ebx
je 0x403bc0
mov al, byte [ebx + 0xc]
and al, 6
cmp al, 2
je 0x403bc0
cmp dword [ebx + 0x18], 0
je 0x403937
mov ecx, ebx
call fcn.00407150
cmp dword [ebx + 0x10], 0
je 0x403bc0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x403bc0
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x50]
cmp eax, dword [edx + 0x20]
je 0x40396f
mov ecx, 7
int 0x29
mov cl, byte [ebx + 0xc]
movzx eax, word [ebx + 0xe]
test al, 8
je 0x40397c
mov eax, dword [ebx + 0x20]
jmp 0x40397e
xor eax, eax
test eax, 0xfffffffe
je 0x4039b9
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x403bc0
mov ecx, 0xffff
cmp word [edx + 0x38], cx
jne 0x4039a8
mov dword [ebx + 0x20], 0xffffffff
jmp 0x403bc0
test eax, eax
je 0x403bc0
dec eax
mov dword [ebx + 0x20], eax
jmp 0x403bc0
or cl, 4
mov byte [ebx + 0xc], cl
test cl, 1
je 0x4039d6
mov ecx, dword [ebx + 0x10]
push 0
push 0
push ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x28]
add eax, ecx
call eax
movzx eax, word [ebx + 0xe]
test al, 1
je 0x403b36
test al, 2
je 0x4039f8
mov ecx, edi
call fcn.00405720
test eax, eax
jns 0x4039f8
mov ecx, 3
int 0x29
test byte [ebx + 0xe], 4
mov ebx, dword [ebp - 0x34]
je 0x403a1a
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x54]
push ebx
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jns 0x403a1a
mov ecx, 7
int 0x29
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x438ce4]
movzx eax, byte [ecx + 0x14]
dec eax
cmp eax, 8
ja case.default.0x403a44
movzx eax, byte [eax + 0x403bec]
jmp dword [eax*4 + 0x403be0]
mov ecx, ebx
call fcn.00404540
push dword [ebx + 0x50]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [0x438ce4]
mov edx, dword [ecx + 0x3c]
mov esi, dword [edx + 0xc]
test esi, esi
je case.0x403a44.2
lea eax, [ebx + 0x68]
push eax
push dword [edx]
call esi
mov ecx, dword [0x438ce4]
movzx eax, word [ecx + 0x16]
cmp eax, 0x68
je 0x403a91
mov ecx, 0x80
cmp ax, cx
jne case.0x403a44.1
lea eax, [ebx + 0x50]
mov dword [ebp - 0x3c], eax
mov esi, dword [eax]
cmp eax, esi
je case.0x403a44.1
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, eax
nop word [eax + eax]
mov eax, dword [esi + 8]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_LdrUnloadDll]
mov esi, dword [esi]
push dword [esi + 4]
push 0
push dword [ebp - 0x1c]
call ebx
cmp edi, esi
jne 0x403ab0
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
push dword [ebx + 0x30]
push 0
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
call esi
push dword [ebx + 0x28]
push 0
push dword [ebp - 0x1c]
call esi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
mov dword [eax], ecx
mov dword [ecx + 4], eax
push ebx
push 0
push dword [ebp - 0x1c]
call esi
mov eax, 1
jmp 0x403b28
xor eax, eax
test eax, eax
jne 0x403b33
mov ecx, 7
int 0x29
mov esi, dword [ebp - 0x24]
test edi, edi
je 0x403b71
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x403b71
mov ecx, dword [edi + 0x3c]
movzx eax, word [ecx + edi + 6]
lea ebx, [eax*4 + 0x1f]
add ebx, eax
lea ebx, [ecx + ebx*8]
add ebx, edi
cmp dword [ebx], 0x11ffee00
jne 0x403b71
cmp dword [ebx + 4], 0xaabbcc
jne 0x403b71
cmp dword [ebx + 0x10], edi
je 0x403b73
xor ebx, ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test ebx, ebx
jne 0x403b82
xor eax, eax
jmp 0x403bb5
mov al, byte [ebx + 0xc]
and al, 6
cmp al, 2
jne 0x403b8f
xor eax, eax
jmp 0x403bb5
cmp dword [ebx + 0x18], 0
je 0x403b9c
mov ecx, ebx
call fcn.00407150
cmp dword [ebx + 0x10], 0
je 0x403bb0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
test eax, eax
jne 0x403bc0
mov ecx, 7
int 0x29
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c