Function at 0x4038b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x41b0b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x422310]
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
mov ebp, 0xf
mov dword [esp + 0x13c], eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], esi
mov byte [esp + 0x68], 0
mov dword [esp + 0x14c], esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [esp + 0x104]
push eax
push 0x6f
push esi
mov byte [esp + 0x15c], 2
mov dword [ebx + 0x178], esi
call edi
test eax, eax
je 0x403dd5
push 0x40
lea ecx, [esp + 0xc4]
push ecx
push 0x70
push esi
call edi
test eax, eax
je 0x403dd5
push 0x40
lea edx, [esp + 0x84]
push edx
push 0x71
push esi
call edi
test eax, eax
je 0x403dd5
cmp dword [0x422f10], esi
je 0x403dd5
cmp dword [0x422f14], esi
je 0x403dd5
mov ebp, dword [esp + 0x154]
lea edx, [ebx + 0x28]
xor eax, eax
mov ecx, 0x3e
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, 0x10
cmp eax, edi
jb 0x4039c2
mov eax, dword [ebp + 4]
jmp 0x4039c5
lea eax, [ebp + 4]
push edx
inc ecx
push ecx
push eax
call dword [0x422f10]
test eax, eax
je 0x403d3c
mov edi, dword [esp + 0x15c]
cmp edi, esi
je 0x4039f2
push edi
mov ecx, ebx
call fcn.004033c0
test eax, eax
je 0x403d2d
mov esi, dword [esp + 0x158]
test esi, esi
je 0x403b54
push 0
push 0x41c408
mov ecx, ebp
call fcn.00401e50
mov esi, eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
add esi, 4
call fcn.004025f0
mov edi, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
sub edi, 0x47
call fcn.00401560
mov eax, dword [eax]
add eax, esi
cmp edi, eax
jb 0x403d2b
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
jb 0x403a4c
lea ecx, [ebp + 4]
mov ebp, dword [ecx]
jmp 0x403a4f
add ebp, 4
add ebp, esi
cmp eax, 0x10
mov eax, dword [esp + 0x154]
jb 0x403a64
add eax, 4
mov eax, dword [eax]
jmp 0x403a67
add eax, 4
mov edx, dword [esp + 0x154]
mov ecx, dword [edx + 0x14]
add ecx, eax
cmp ebp, ecx
mov dword [esp + 0x20], ecx
jae 0x403b00
nop
push 0x41c404
push ebp
call fcn.00410440
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403afc
sub eax, ebp
je 0x403af1
cmp eax, 0x19
jbe 0x403aaf
mov ecx, 0x19
mov edi, 0x41c3e8
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403af1
cmp eax, 8
jbe 0x403ac6
mov ecx, 2
mov edi, 0x41c3dc
mov esi, ebp
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x403af1
cmp eax, 2
jbe 0x403ade
cmp eax, 0x47
ja 0x403ade
mov dx, word [ebp]
mov ecx, 0x41c3d8
cmp dx, word [ecx]
je 0x403af1
push eax
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.0040ac20
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
lea ebp, [ebx + 1]
cmp ebp, eax
jb 0x403a80
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x158]
mov dword [ebx + 0x178], ecx
push esi
mov ecx, ebx
call fcn.00402400
test eax, eax
je 0x403d2b
cmp dword [esi], 0
je 0x403b3f
mov eax, dword [ebx + 0x138]
test eax, eax
jne 0x403b3f
mov ecx, ebx
call fcn.00403060
test eax, eax
je 0x403d2b
mov ebp, dword [esp + 0x154]
mov esi, dword [esp + 0x158]
mov edi, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
test eax, eax
je 0x403b76
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x403b76
push eax
mov ecx, ebx
call fcn.00402fc0
test eax, eax
je 0x403d2b
test edi, edi
je 0x403b80
mov edx, dword [edi]
mov dword [esp + 0x1c], edx
test esi, esi
je 0x403b8a
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 0x10], 1
jne 0x403ba6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403d2b
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x403d2b
mov ecx, dword [ebx + 0x158]
mov eax, 0x10
cmp ecx, eax
mov dword [esp + 0x10], 0
jb 0x403bd3
mov ecx, dword [ebx + 0x144]
jmp 0x403bd9
lea ecx, [ebx + 0x144]
cmp dword [ebx + 0x13c], eax
jb 0x403be9
mov eax, dword [ebx + 0x128]
jmp 0x403bef
lea eax, [ebx + 0x128]
push ecx
push eax
call fcn.00410210
mov edi, eax
add esp, 8
test edi, edi
je 0x403d2b
push edi
lea ecx, [esp + 0x68]
call fcn.00402e80
push edi
call fcn.0040ed69
add esp, 4
lea ecx, [esp + 0x64]
push ecx
push ebp
mov ecx, ebx
call fcn.00402580
test eax, eax
je 0x403d2b
mov ecx, dword [ebx + 0x174]
mov eax, 0x10
cmp ecx, eax
jb 0x403c42
mov ecx, dword [ebx + 0x160]
jmp 0x403c48
lea ecx, [ebx + 0x160]
cmp dword [ebx + 0x13c], eax
jb 0x403c58
mov eax, dword [ebx + 0x128]
jmp 0x403c5e
lea eax, [ebx + 0x128]
push ecx
push eax
call fcn.00410210
mov edi, eax
add esp, 8
test edi, edi
je 0x403d2b
push edi
lea ecx, [esp + 0x4c]
call fcn.00402e80
cmp esi, 1
jne 0x403c8b
lea edx, [esp + 0xc0]
push edx
jmp 0x403c98
cmp esi, 2
jne 0x403ca1
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x30]
call fcn.00401a30
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403cba
lea ecx, [esp + 0x100]
push ecx
lea ecx, [esp + 0x30]
call fcn.00401a30
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x403ccb
push eax
lea ecx, [esp + 0x30]
call fcn.00401a30
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov ecx, 0x10
cmp eax, ecx
jae 0x403ce0
lea edx, [esp + 0x4c]
cmp dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
jae 0x403cee
lea eax, [esp + 0x30]
cmp dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x68]
jae 0x403cfc
lea ecx, [esp + 0x68]
push edx
push 0
push 0
push eax
lea eax, [ebx + 0x28]
push eax
push ecx
call dword [0x422f1c]
lea edx, [esp + 0x48]
push edx
push ebp
mov ecx, ebx
call fcn.00402dd0
push edi
mov dword [esp + 0x14], 1
call fcn.0040ed69
add esp, 4
xor esi, esi
lea eax, [ebx + 0x28]
push eax
call dword [0x422f14]
mov edi, 0x10
mov ebp, 0xf
cmp dword [ebx + 0x138], esi
je 0x403d58
push esi
lea eax, [ebx + 0x124]
push eax
mov ecx, ebx
call fcn.004031f0
cmp dword [esp + 0x44], edi
jb 0x403d6b
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040f9ed
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
jb 0x403d8b
mov edx, dword [esp + 0x4c]
push edx
call fcn.0040f9ed
add esp, 4
cmp dword [esp + 0x7c], edi
pop edi
mov dword [esp + 0x58], esi
pop esi
mov dword [esp + 0x58], ebp
pop ebp
mov byte [esp + 0x40], 0
pop ebx
jb 0x403daf
mov eax, dword [esp + 0x58]
push eax
call fcn.0040f9ed
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, dword [esp]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
call fcn.0040f12e
add esp, 0x140
ret 0x10
mov edi, 0x10
jmp 0x403d41