Function at 0x402a20
Capabilities:
Access peb ldr_data
Create thread
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x790
mov eax, dword [0x407bac]
push ebx
push esi
cmp eax, 0x32
push edi
jle 0x402a55
cmp eax, 0xfffffff2
jle 0x402a6c
cmp eax, 6
jg 0x402a6c
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
xor ebx, ebx
xor esi, esi
push 0x7f00
push ebx
call edi
cmp esi, 0x4c0
jne 0x402aed
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x402aa3
mov eax, dword [0xb52f14]
mov dword [0xb52df8], ebx
dec eax
mov dword [0xb59c74], eax
jmp 0x402ac2
cmp eax, 2
jne 0x402ac2
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
mov eax, dword [0x407bac]
cmp eax, 0x32
jle 0x402ad6
cmp eax, 0xfffffff2
jle 0x402aed
cmp eax, 6
jg 0x402aed
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
inc esi
cmp esi, 0x35781
jl 0x402a76
mov esi, 0x407030
mov edi, 0x407210
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 4]
not ecx
dec ecx
push ecx
mov ecx, dword [esi]
push eax
push 0x407210
push ecx
call fcn.00401a50
mov dword [esi], eax
add esi, 8
add esp, 0x10
cmp esi, 0x407208
jle 0x402afb
mov dword [ebp - 0x50], 0x68ace740
xor ebx, ebx
mov dword [ebp - 0x50], 0x6e2123ee
mov ebx, dword fs:[0x30]
mov dword [ebp - 0x20], 0xe6545800
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x20], 0x89d3a78
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov dword [ebp - 0x20], 0x6a00ebb6
mov ebx, dword [ebx]
mov dword [ebp - 0x50], 0x5ea0a99a
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0x28], ebx
mov esi, dword [ebp - 0x28]
mov ecx, dword [0xb52d68]
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 0x78]
add eax, esi
cmp ecx, 1
mov dword [ebp - 0x28], eax
jne 0x402b95
mov dword [0xb52df8], 0
jmp 0x402ba7
cmp ecx, 2
jne 0x402bb4
mov edx, dword [0xb52f24]
dec edx
mov dword [0xb52df8], edx
mov ecx, dword [0xb52f14]
dec ecx
mov dword [0xb59c74], ecx
mov edi, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add edi, esi
mov dword [ebp - 0x18], edi
mov edi, dword [eax + 0x18]
add ecx, esi
add edx, esi
xor ebx, ebx
test edi, edi
mov dword [ebp - 0x24], ebx
jbe 0x402c99
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov edi, dword [0x4071c0]
mov eax, esi
add eax, edx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x402c0c
test cl, cl
je 0x402c08
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x402c0c
add eax, 2
add edi, 2
test cl, cl
jne 0x402be8
xor eax, eax
jmp 0x402c11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402c28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ax, word [ecx]
mov eax, dword [edx + eax*4]
add eax, esi
mov dword [0xb52efc], eax
mov ecx, dword [ebp - 0x14]
mov edi, dword [0x407128]
mov eax, esi
add eax, dword [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x402c59
test cl, cl
je 0x402c55
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x402c59
add eax, 2
add edi, 2
test cl, cl
jne 0x402c35
xor eax, eax
jmp 0x402c5e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402c75
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ax, word [ecx]
mov eax, dword [edx + eax*4]
add eax, esi
mov dword [0xb52f08], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add edx, 2
inc ebx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x28]
add ecx, 4
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x14], ecx
cmp ebx, eax
jb 0x402bdc
mov dword [ebp - 0x24], ebx
mov eax, dword [0x407190]
push eax
call dword [0xb52efc]
mov dword [ebp - 0x28], eax
mov eax, dword [0xb52d68]
cmp eax, 1
je 0x402cb9
cmp eax, 2
je 0x402cd2
jmp 0x402cea
mov ecx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec ecx
mov dword [0xb59c74], ecx
jmp 0x402cea
mov edx, dword [0xb52f24]
mov eax, dword [0xb52f14]
dec edx
dec eax
mov dword [0xb52df8], edx
mov dword [0xb59c74], eax
mov ecx, dword [0x407200]
push ecx
call dword [0xb52efc]
mov dword [ebp - 0x50], eax
cmp ebx, 0x28
mov eax, 0x1e
jbe 0x402d09
cmp ebx, 0x5a
jbe 0x402d13
cmp ebx, 0xffffffca
jbe 0x402d2b
cmp ebx, 0xffffffde
ja 0x402d2b
mov ecx, dword [0xb52d5c]
mov dword [0xb52f2c], 0x28
add ecx, eax
mov dword [0xb52d5c], ecx
cmp ebx, 0x14
jbe 0x402d35
cmp ebx, 0x46
jbe 0x402d3f
cmp ebx, 0xffffffde
jbe 0x402d51
cmp ebx, 0xfffffff2
ja 0x402d51
mov dword [0xb52f2c], eax
mov eax, dword [0xb52d5c]
add eax, 0x14
mov dword [0xb52d5c], eax
mov edx, dword [0x407118]
push edx
call dword [0xb52efc]
mov edi, eax
mov eax, dword [0x4071c8]
push eax
call dword [0xb52efc]
mov ecx, dword [0x407090]
mov dword [ebp - 0x1c], eax
push ecx
call dword [0xb52efc]
cmp ebx, 0x28
mov dword [ebp - 0x14], eax
jbe 0x402d89
cmp ebx, 0x5a
jbe 0x402d93
cmp ebx, 0xffffffca
jbe 0x402daa
cmp ebx, 0xffffffde
ja 0x402daa
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x28
add eax, 0x1e
mov dword [0xb52d5c], eax
mov edx, dword [0x407108]
push edx
call dword [0xb52efc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4070c8]
push eax
call dword [0xb52efc]
mov ecx, dword [0x407088]
mov dword [ebp - 0x20], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407178]
mov dword [0xb52be4], eax
push edx
push esi
call dword [0xb52f08]
cmp ebx, 0x28
mov dword [0xb52bdc], eax
jbe 0x402df9
cmp ebx, 0x5a
jbe 0x402e03
cmp ebx, 0xffffffca
jbe 0x402e1a
cmp ebx, 0xffffffde
ja 0x402e1a
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x28
add eax, 0x1e
mov dword [0xb52d5c], eax
cmp ebx, 0x3c
jbe 0x402e24
cmp ebx, 0x6e
jbe 0x402e2e
cmp ebx, 0xffffffb6
jbe 0x402e45
cmp ebx, 0xffffffca
ja 0x402e45
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
mov eax, dword [0x407038]
push eax
push esi
call dword [0xb52f08]
mov dword [0xb59c58], eax
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x402e7a
mov ecx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec ecx
mov dword [0xb59c74], ecx
jmp 0x402e97
cmp eax, 2
jne 0x402e97
mov edx, dword [0xb52f24]
mov eax, dword [0xb52f14]
dec edx
dec eax
mov dword [0xb52df8], edx
mov dword [0xb59c74], eax
mov ecx, dword [0x407160]
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x4071e0]
mov dword [0xb52f00], eax
mov eax, dword [ebp - 0x28]
push edx
push eax
call dword [0xb52f08]
mov ecx, dword [0x4070a0]
mov dword [0xb52be0], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407068]
mov dword [0x7a5830], eax
push edx
push esi
call dword [0xb52f08]
mov dword [0xb52ee4], eax
mov eax, dword [0x4070f0]
push eax
push esi
call dword [0xb52f08]
cmp ebx, 0x14
mov dword [0xb52ef8], eax
jbe 0x402f02
cmp ebx, 0x46
jbe 0x402f0c
cmp ebx, 0xffffffde
jbe 0x402f23
cmp ebx, 0xfffffff2
ja 0x402f23
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x1e
add eax, 0x14
mov dword [0xb52d5c], eax
cmp ebx, 0x32
jbe 0x402f32
cmp ebx, 0xfffffff2
jbe 0x402f49
cmp ebx, 6
ja 0x402f49
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
mov ecx, dword [0x4071b8]
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407140]
mov dword [0xb56d5c], eax
push edx
push esi
call dword [0xb52f08]
mov dword [0xb56d64], eax
mov eax, dword [0x407100]
push eax
push esi
call dword [0xb52f08]
mov ecx, dword [0x4070e0]
mov dword [0x407b94], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x4070d8]
mov dword [0xb52d94], eax
push edx
push esi
call dword [0xb52f08]
mov dword [0xb52df4], eax
mov eax, dword [0x407180]
push eax
push esi
call dword [0xb52f08]
mov ecx, dword [0x407030]
mov dword [0xb52ee0], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407150]
mov dword [0xb52e04], eax
push edx
push edi
call dword [0xb52f08]
mov dword [0xb52f30], eax
mov eax, dword [0x407050]
push eax
push esi
call dword [0xb52f08]
mov ecx, dword [0x407198]
mov dword [0xb52d4c], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407070]
mov dword [0xb52f04], eax
push edx
push esi
call dword [0xb52f08]
mov dword [0xb52d48], eax
mov eax, dword [0x4071f8]
push eax
push esi
call dword [0xb52f08]
mov ecx, dword [0x407130]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
mov dword [0x407780], eax
call dword [0xb52f08]
mov dword [0xb52d50], eax
mov eax, dword [0x407138]
push eax
push esi
call dword [0xb52f08]
mov ecx, dword [0x4070d0]
mov dword [0xb52d98], eax
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407170]
mov dword [0xb59c5c], eax
mov eax, dword [ebp - 0x14]
push edx
push eax
call dword [0xb52f08]
cmp ebx, 0x28
mov dword [0xb52ed8], eax
jbe 0x403084
cmp ebx, 0x5a
jbe 0x40308e
cmp ebx, 0xffffffca
jbe 0x4030a8
cmp ebx, 0xffffffde
ja 0x4030a8
mov eax, dword [0xb52d5c]
mov edi, 0x28
add eax, 0x1e
mov dword [0xb52f2c], edi
mov dword [0xb52d5c], eax
jmp 0x4030ad
mov edi, 0x28
cmp ebx, 0x3c
jbe 0x4030b7
cmp ebx, 0x6e
jbe 0x4030c1
cmp ebx, 0xffffffb6
jbe 0x4030d7
cmp ebx, 0xffffffca
ja 0x4030d7
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, edi
mov dword [0xb52d5c], eax
mov ecx, dword [0x407188]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [0xb52f08]
mov esi, dword [ebp - 0x50]
mov dword [0x40778c], eax
mov eax, dword [0x407060]
push eax
push esi
call dword [0xb52f08]
cmp ebx, 0x3c
mov dword [0x407758], eax
jbe 0x40310c
cmp ebx, 0x6e
jbe 0x403116
cmp ebx, 0xffffffb6
jbe 0x40312c
cmp ebx, 0xffffffca
ja 0x40312c
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, edi
mov dword [0xb52d5c], eax
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x40314f
mov ecx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec ecx
mov dword [0xb59c74], ecx
jmp 0x40316c
cmp eax, 2
jne 0x40316c
mov edx, dword [0xb52f24]
mov eax, dword [0xb52f14]
dec edx
dec eax
mov dword [0xb52df8], edx
mov dword [0xb59c74], eax
mov ecx, dword [0x407048]
mov edx, dword [ebp - 0x20]
push ecx
push edx
call dword [0xb52f08]
mov dword [0xb56d60], eax
mov eax, dword [0x407148]
push eax
push esi
call dword [0xb52f08]
cmp ebx, 0x14
mov dword [0xb56cf0], eax
jbe 0x40319e
cmp ebx, 0x46
jbe 0x4031a8
cmp ebx, 0xffffffde
jbe 0x4031bf
cmp ebx, 0xfffffff2
ja 0x4031bf
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x1e
add eax, 0x14
mov dword [0xb52d5c], eax
mov ecx, dword [0x4071f0]
push ecx
push esi
call dword [0xb52f08]
mov edx, dword [0x407078]
mov dword [0x407ba0], eax
push edx
push esi
call dword [0xb52f08]
mov dword [0xb56cec], eax
mov esi, 1
mov eax, esi
push 0xa
and eax, 0xffff
push eax
push 0
call dword [0xb52bdc]
test eax, eax
jne 0x40321a
inc esi
cmp esi, 0x2710
jl 0x4031ea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0
call dword [0xb52be4]
push eax
call dword [0xb59c58]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x404981
cmp ebx, edi
jbe 0x40323e
cmp ebx, 0x5a
jbe 0x403248
cmp ebx, 0xffffffca
jbe 0x403263
cmp ebx, 0xffffffde
ja 0x403263
mov ecx, dword [0xb52d5c]
mov esi, 0x1e
add ecx, esi
mov dword [0xb52f2c], edi
mov dword [0xb52d5c], ecx
jmp 0x403268
mov esi, 0x1e
mov ecx, dword [0xb52d68]
cmp ecx, 1
jne 0x40327f
mov dword [0xb52df8], 0
jmp 0x403291
cmp ecx, 2
jne 0x40329e
mov edx, dword [0xb52f24]
dec edx
mov dword [0xb52df8], edx
mov ecx, dword [0xb52f14]
dec ecx
mov dword [0xb59c74], ecx
cmp ebx, edi
jbe 0x4032a7
cmp ebx, 0x5a
jbe 0x4032b1
cmp ebx, 0xffffffca
jbe 0x4032c5
cmp ebx, 0xffffffde
ja 0x4032c5
mov ecx, dword [0xb52d5c]
mov dword [0xb52f2c], edi
add ecx, esi
mov dword [0xb52d5c], ecx
cmp ebx, edi
jbe 0x4032ce
cmp ebx, 0x5a
jbe 0x4032d8
cmp ebx, 0xffffffca
jbe 0x4032ec
cmp ebx, 0xffffffde
ja 0x4032ec
mov ecx, dword [0xb52d5c]
mov dword [0xb52f2c], edi
add ecx, esi
mov dword [0xb52d5c], ecx
push 0x360
push 0x55f
push 0x360
push eax
add eax, 0x55f
push eax
call fcn.00401a50
add esp, 0x10
lea edx, [ebp - 0x514]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
cmp word [ebp - 0x500], 1
jne 0x40336d
cmp ebx, edi
jbe 0x40332e
cmp ebx, 0x5a
jbe 0x403338
cmp ebx, 0xffffffca
jbe 0x40334a
cmp ebx, 0xffffffde
ja 0x40334a
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], edi
add eax, esi
mov dword [0xb52d5c], eax
sub esp, 0x360
mov ecx, 0xd8
lea esi, [ebp - 0x514]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004026c0
mov ebx, dword [ebp - 0x24]
add esp, 0x360
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x40338e
mov eax, dword [0xb52f14]
mov dword [0xb52df8], 0
dec eax
mov dword [0xb59c74], eax
jmp 0x4033ad
cmp eax, 2
jne 0x4033ad
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
xor edi, edi
call fcn.00401ca0
test al, al
jne 0x4033c5
call fcn.00401b90
test al, al
jne 0x4033c5
xor eax, eax
jmp 0x4033ca
mov eax, 1
mov ecx, dword [ebp - 0x512]
and ecx, 0xffff
test eax, ecx
je 0x403458
cmp ebx, 0x3c
jbe 0x4033e4
cmp ebx, 0x6e
jbe 0x4033ee
cmp ebx, 0xffffffb6
jbe 0x403405
cmp ebx, 0xffffffca
ja 0x403405
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x403417
dec eax
or eax, 0xfffffffc
inc eax
mov edi, dword [ebp - 0x512]
inc eax
and edi, 0xffff
cmp ebx, 0x3c
mov dword [0xb52d68], eax
jbe 0x403433
cmp ebx, 0x6e
jbe 0x40343d
cmp ebx, 0xffffffb6
jbe 0x40345d
cmp ebx, 0xffffffca
ja 0x40345d
mov ecx, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add ecx, 0x28
mov dword [0xb52d5c], ecx
jmp 0x40345d
mov eax, dword [0xb52d68]
mov ecx, dword [0xb52f14]
cmp eax, 1
jne 0x403474
mov dword [0xb52df8], 0
jmp 0x403486
cmp eax, 2
jne 0x40348d
mov edx, dword [0xb52f24]
dec edx
mov dword [0xb52df8], edx
dec ecx
mov dword [0xb59c74], ecx
cmp word [ebp - 0x510], 0
je 0x403597
mov eax, dword [0x4070f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4034b7
mov edi, dword [ebp - 0x510]
and edi, 0xffff
lea ecx, [ebp - 0x1b4]
push 0x104
push ecx
push 0
call dword [0xb52e04]
mov edx, dword [str._l_SFb]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [ebp - 0x1b4]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x4034f4
mov edi, dword [ebp - 0x510]
and edi, 0xffff
mov ecx, dword [str._l_WNc]
lea edx, [ebp - 0x1b4]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x403517
mov edi, dword [ebp - 0x510]
and edi, 0xffff
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403538
mov eax, dword [0xb52f14]
mov dword [0xb52df8], 0
dec eax
mov dword [0xb59c74], eax
jmp 0x403557
cmp eax, 2
jne 0x403557
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x79c]
push eax
push ecx
mov dword [ebp - 0x20], 0x80
call dword [0x407758]
mov edx, dword [0x407080]
lea eax, [ebp - 0x79c]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x403592
mov edi, dword [ebp - 0x510]
and edi, 0xffff
mov eax, dword [0xb52d68]
cmp word [ebp - 0x50e], 0
je 0x403625
mov ecx, dword [0x4070a8]
push ecx
push 0
call dword [0xb56d60]
test eax, eax
je 0x4035c4
mov edi, dword [ebp - 0x50e]
and edi, 0xffff
mov edx, dword [0x4071b0]
push edx
push 0
call dword [0xb56d60]
test eax, eax
je 0x4035e3
mov edi, dword [ebp - 0x50e]
and edi, 0xffff
mov eax, dword [0x4070b8]
push eax
push 0
call dword [0xb56d60]
test eax, eax
je 0x403601
mov edi, dword [ebp - 0x50e]
and edi, 0xffff
mov ecx, dword [0x407158]
push ecx
push 0
call dword [0xb56d60]
test eax, eax
je 0x403620
mov edi, dword [ebp - 0x50e]
and edi, 0xffff
mov eax, dword [0xb52d68]
test edi, edi
je 0x403683
cmp edi, 2
jne 0x403661
sub esp, 0x360
mov ecx, 0xd8
lea esi, [ebp - 0x514]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004026c0
add esp, 0x360
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 3
jne 0x404981
call dword [0xb52bd0]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4036a1
mov edx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec edx
mov dword [0xb59c74], edx
jmp 0x4036be
cmp eax, 2
jne 0x4036be
mov eax, dword [0xb52f24]
mov ecx, dword [0xb52f14]
dec eax
dec ecx
mov dword [0xb52df8], eax
mov dword [0xb59c74], ecx
mov ax, word [ebp - 0x514]
cmp ax, 1
jne 0x403821
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x504]
push 0x55f
push edx
lea esi, [eax + 0x8bf]
push eax
push esi
call fcn.00401a50
mov edi, 0x28
add esp, 0x10
cmp ebx, edi
jbe 0x4036fc
cmp ebx, 0x5a
jbe 0x403706
cmp ebx, 0xffffffca
jbe 0x403719
cmp ebx, 0xffffffde
ja 0x403719
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], edi
add eax, 0x1e
mov dword [0xb52d5c], eax
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x40372b
dec eax
or eax, 0xfffffffc
inc eax
inc eax
cmp ebx, 0x3c
mov dword [0xb52d68], eax
jbe 0x40373b
cmp ebx, 0x6e
jbe 0x403745
cmp ebx, 0xffffffb6
jbe 0x40375b
cmp ebx, 0xffffffca
ja 0x40375b
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, edi
mov dword [0xb52d5c], eax
xor eax, eax
mov ecx, 0x41
cmp word [ebp - 0x50c], ax
lea edi, [ebp - 0x1b4]
rep stosd dword es:[edi], eax
je 0x40379e
mov edx, dword [0x407058]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1b4]
push eax
mov eax, dword [0x407098]
push ecx
push edx
push eax
push 2
push 0
mov dword [ebp - 0x20], 0x104
call dword [0xb52f30]
jmp 0x4037b2
lea ecx, [ebp - 0x1b4]
push 0x104
push ecx
push 0
call dword [0xb52e04]
push 0x104
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [0x407784]
mov ebx, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4037fc
push edx
lea edx, [ebp - 0x1b4]
push edx
push str.__s___s
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push esi
push ebx
call fcn.00401d60
add esp, 8
jmp 0x403f23
lea eax, [ebp - 0x1b4]
push eax
push str.__s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
push ebx
call fcn.00401d60
add esp, 8
jmp 0x403f23
cmp ax, 2
je 0x403831
cmp ax, 3
jne 0x404981
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x504]
push 0x55f
push ecx
lea edi, [esi + 0x8bf]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
call fcn.00401a50
add esp, 0x10
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x40386a
dec eax
or eax, 0xfffffffc
inc eax
inc eax
cmp ebx, 0x32
mov dword [0xb52d68], eax
jbe 0x40387f
cmp ebx, 0xfffffff2
jbe 0x403896
cmp ebx, 6
ja 0x403896
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
mov edx, dword [ebp - 0x504]
add edi, edx
cmp ebx, 0x3c
mov dword [ebp - 0x50], edi
jbe 0x4038ab
cmp ebx, 0x6e
jbe 0x4038b5
cmp ebx, 0xffffffb6
jbe 0x4038cc
cmp ebx, 0xffffffca
ja 0x4038cc
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
cmp ebx, 0x3c
jbe 0x4038d6
cmp ebx, 0x6e
jbe 0x4038e0
cmp ebx, 0xffffffb6
jbe 0x4038f7
cmp ebx, 0xffffffca
ja 0x4038f7
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
mov eax, dword [0x4070b0]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x504]
add esp, 4
test eax, eax
jbe 0x403eb1
mov dword [ebp - 0x18], 0
jmp 0x403923
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x8bf]
add ecx, eax
push 0x208
lea edx, [ebp - 0x71c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x714]
push eax
push ecx
push str._s_s
push 0xb59c84
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x614]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403a35
push 0x208
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, 0x82
lea esi, [ebp - 0x71c]
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0xb52d68]
cmp ecx, 1
jne 0x4039a8
mov dword [0xb52df8], 0
jmp 0x4039ba
cmp ecx, 2
jne 0x4039c7
mov ecx, dword [0xb52f24]
dec ecx
mov dword [0xb52df8], ecx
mov edx, dword [0xb52f14]
dec edx
mov dword [0xb59c74], edx
lea edi, [eax + 8]
mov ecx, 0x40
mov esi, 0xb59c84
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0xb52d68]
cmp ecx, 1
jne 0x4039ed
mov dword [0xb52df8], 0
jmp 0x4039ff
cmp ecx, 2
jne 0x403a0c
mov edx, dword [0xb52f24]
dec edx
mov dword [0xb52df8], edx
mov ecx, dword [0xb52f14]
dec ecx
mov dword [0xb59c74], ecx
mov ecx, dword [0xb52d70]
push 0
push 0
push eax
push 0x402540
inc ecx
push 0
push 0
mov dword [0xb52d70], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [ebp - 0x24]
jmp 0x403e8f
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0xb59c84
call dword [0xb52d4c]
mov esi, eax
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403a77
mov edx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec edx
mov dword [0xb59c74], edx
jmp 0x403a94
cmp eax, 2
jne 0x403a94
mov eax, dword [0xb52f24]
mov ecx, dword [0xb52f14]
dec eax
dec ecx
mov dword [0xb52df8], eax
mov dword [0xb59c74], ecx
test esi, esi
je 0x403e8f
cmp esi, 0xffffffff
je 0x403e8f
mov eax, dword [ebp - 0x71c]
mov edx, dword [ebp - 0x14]
sub eax, edx
cmp eax, 0x1000
jle 0x403ac6
cmp word [ebp - 0x514], 3
je 0x403ac6
mov eax, 0x1000
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
push 0x55f
push eax
lea edi, [edx + ecx]
mov edx, dword [ebp - 0x1c]
push edx
push edi
call fcn.00401a50
add esp, 0x10
cmp ebx, 0x32
jbe 0x403af1
cmp ebx, 0xfffffff2
jbe 0x403b08
cmp ebx, 6
ja 0x403b08
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
push 0
push 0
push 0
push esi
call dword [0xb52f04]
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403b36
mov eax, dword [0xb52f14]
mov dword [0xb52df8], 0
dec eax
mov dword [0xb59c74], eax
jmp 0x403b55
cmp eax, 2
jne 0x403b55
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x403b67
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [ebp - 0x71c]
inc eax
mov dword [0xb52d68], eax
lea eax, [ebp - 0x28]
push 0
push eax
sub ecx, dword [ebp - 0x14]
push ecx
push edi
push esi
call dword [0xb52d48]
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403ba8
mov edx, dword [0xb52f14]
mov dword [0xb52df8], 0
dec edx
mov dword [0xb59c74], edx
jmp 0x403bc5
cmp eax, 2
jne 0x403bc5
mov eax, dword [0xb52f24]
mov ecx, dword [0xb52f14]
dec eax
dec ecx
mov dword [0xb52df8], eax
mov dword [0xb59c74], ecx
push esi
call dword [0x407780]
mov ecx, 0x32
cmp ebx, ecx
jbe 0x403bdf
cmp ebx, 0xfffffff2
jbe 0x403bf6
cmp ebx, 6
ja 0x403bf6
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
cmp ebx, 0x3c
jbe 0x403c00
cmp ebx, 0x6e
jbe 0x403c0a
cmp ebx, 0xffffffb6
jbe 0x403c1d
cmp ebx, 0xffffffca
ja 0x403c1d
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], ecx
add eax, 0x28
mov dword [0xb52d5c], eax
cmp word [ebp - 0x508], 1
jne 0x403cff
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403c41
mov dword [0xb52df8], 0
jmp 0x403c51
cmp eax, 2
jne 0x403c5e
mov eax, dword [0xb52f24]
dec eax
mov dword [0xb52df8], eax
mov edx, dword [0xb52f14]
dec edx
mov dword [0xb59c74], edx
cmp ebx, 0x3c
jbe 0x403c68
cmp ebx, 0x6e
jbe 0x403c72
cmp ebx, 0xffffffb6
jbe 0x403c85
cmp ebx, 0xffffffca
ja 0x403c85
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], ecx
add eax, 0x28
mov dword [0xb52d5c], eax
push 4
push 0
push 0xb59c84
call dword [0xb52d98]
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403cb5
mov eax, dword [0xb52f14]
mov dword [0xb52df8], 0
dec eax
mov dword [0xb59c74], eax
jmp 0x403cd4
cmp eax, 2
jne 0x403cd4
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
cmp ebx, 0x28
jbe 0x403cde
cmp ebx, 0x5a
jbe 0x403ce8
cmp ebx, 0xffffffca
jbe 0x403cff
cmp ebx, 0xffffffde
ja 0x403cff
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x28
add eax, 0x1e
mov dword [0xb52d5c], eax
mov eax, dword [ebp - 0x718]
test eax, eax
jle 0x403dbd
push 0x208
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov ecx, 0x82
lea esi, [ebp - 0x71c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 8]
mov ecx, 0x40
mov esi, 0xb59c84
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403d5b
mov eax, dword [0xb52f14]
mov dword [0xb52df8], 0
dec eax
mov dword [0xb59c74], eax
jmp 0x403d7a
cmp eax, 2
jne 0x403d7a
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x403d8c
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [0xb52d70]
push 0
push 0
push ebx
inc eax
push 0x402540
inc ecx
push 0
push 0
mov dword [0xb52d68], eax
mov dword [0xb52d70], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [ebp - 0x24]
xor esi, esi
jmp 0x403e53
mov edi, 5
xor esi, esi
push 1
push esi
push esi
push 0xb59c84
push esi
push esi
call dword [0xb52d50]
cmp eax, 0x20
jg 0x403e28
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403df7
mov eax, dword [0xb52f14]
mov dword [0xb52df8], esi
dec eax
mov dword [0xb59c74], eax
jmp 0x403e16
cmp eax, 2
jne 0x403e16
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
cmp edi, esi
jg 0x403dc4
jmp 0x403e53
cmp ebx, 0x3c
jbe 0x403e32
cmp ebx, 0x6e
jbe 0x403e3c
cmp ebx, 0xffffffb6
jbe 0x403e53
cmp ebx, 0xffffffca
ja 0x403e53
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x403e70
mov eax, dword [0xb52f14]
mov dword [0xb52df8], esi
dec eax
mov dword [0xb59c74], eax
jmp 0x403e8f
cmp eax, 2
jne 0x403e8f
mov ecx, dword [0xb52f24]
mov edx, dword [0xb52f14]
dec ecx
dec edx
mov dword [0xb52df8], ecx
mov dword [0xb59c74], edx
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp - 0x504]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
add eax, 0x208
cmp ecx, eax
mov dword [ebp - 0x18], eax
ja 0x403920
mov eax, dword [0xb52d70]
test eax, eax
je 0x403f23
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x24]
mov edi, 0x14
cmp esi, 0x32
jbe 0x403ed7
cmp esi, 0xfffffff2
jbe 0x403eea
cmp esi, 6
ja 0x403eea
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], edi
add eax, 0xa
mov dword [0xb52d5c], eax
cmp esi, edi
jbe 0x403ef3
cmp esi, 0x46
jbe 0x403efd
cmp esi, 0xffffffde
jbe 0x403f13
cmp esi, 0xfffffff2
ja 0x403f13
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x1e
add eax, edi
mov dword [0xb52d5c], eax
push 0x7d0
call ebx
mov eax, dword [0xb52d70]
test eax, eax
jne 0x403ec8
cmp word [ebp - 0x50a], 1
jne 0x404036
lea ecx, [ebp - 0x1b4]
push 0x104
push ecx
push 0
call dword [0xb52e04]
mov ecx, dword [0x407120]
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x1b4]
push edx
push eax
lea edx, [ebp - 0x618]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [ebp - 0x24]
add esp, 0x10
cmp esi, 0x3c
jbe 0x403f77
cmp esi, 0x6e
jbe 0x403f81
cmp esi, 0xffffffb6
jbe 0x403f98
cmp esi, 0xffffffca
ja 0x403f98
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
cmp esi, 0x3c
jbe 0x403fa2
cmp esi, 0x6e
jbe 0x403fac
cmp esi, 0xffffffb6
jbe 0x403fc3
cmp esi, 0xffffffca
ja 0x403fc3
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
mov ecx, dword [0x407110]
lea eax, [ebp - 0x1b4]
push 0x104
push eax
push ecx
call dword [0xb59c5c]
cmp esi, 0x32
jbe 0x403feb
cmp esi, 0xfffffff2
jbe 0x404002
cmp esi, 6
ja 0x404002
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x80000003
jns 0x404014
dec eax
or eax, 0xfffffffc
inc eax
inc eax
push 0
mov dword [0xb52d68], eax
lea edx, [ebp - 0x618]
push 0
lea eax, [ebp - 0x1b4]
push edx
push eax
push 0
push 0
call dword [0xb52d50]
mov cl, byte [ebp - 0xd]
lea edi, [ebp - 0x236]
mov byte [ebp - 0x3c], cl
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [ebp - 0x3c]
push ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40408e
mov edi, dword [ebp - 0x38]
mov ecx, ebx
mov edx, ecx
lea esi, [ebp - 0x236]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
xor esi, esi
mov byte [ebx + eax], 0
cmp word [ebp - 0x27a], si
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
jne 0x4040aa
cmp word [ebp - 0x278], si
je 0x40494d
mov cl, byte [ebp - 0xd]
mov esi, dword [0x4070e8]
mov byte [ebp - 0xa0], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0xa0]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x404112
mov edi, dword [ebp - 0x9c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x98], ebx
mov byte [ebx + eax], 0
mov cl, byte [ebp - 0xd]
mov esi, dword [0x4071e8]
mov byte [ebp - 0x90], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 1
mov ebx, ecx
lea ecx, [ebp - 0x90]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40417e
mov edi, dword [ebp - 0x8c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], ebx
mov byte [ebx + eax], 0
mov cl, byte [ebp - 0xd]
mov esi, dword [0x4070c0]
mov byte [ebp - 0x80], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 2
mov ebx, ecx
lea ecx, [ebp - 0x80]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4041d2
mov edi, dword [ebp - 0x7c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
mov byte [ebx + eax], 0
mov cl, byte [ebp - 0xd]
mov esi, dword [0x407168]
mov byte [ebp - 0x70], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 3
mov ebx, ecx
lea ecx, [ebp - 0x70]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x404226
mov edi, dword [ebp - 0x6c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], ebx
mov byte [ebx + eax], 0
mov cl, byte [ebp - 0xd]
mov esi, dword [0x4071a8]
mov byte [ebp - 0x60], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 4
mov ebx, ecx
lea ecx, [ebp - 0x60]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40427a
mov edi, dword [ebp - 0x5c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ebx
mov byte [ebx + eax], 0
xor esi, esi
mov cl, byte [ebp - 0xd]
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x4c], cl
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
cmp eax, 0x32
jbe 0x4042a1
cmp eax, 0xfffffff2
jbe 0x4042b8
cmp eax, 6
ja 0x4042b8
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
mov eax, dword [0xb52d68]
mov ecx, dword [0xb52f14]
mov edx, dword [0xb52f24]
cmp eax, 1
jne 0x4042d6
mov dword [0xb52df8], esi
jmp 0x4042e4
cmp eax, 2
jne 0x4042ed
lea edi, [edx - 1]
mov dword [0xb52df8], edi
lea edi, [ecx - 1]
mov dword [0xb59c74], edi
cmp eax, 1
jne 0x4042fa
mov dword [0xb52df8], esi
jmp 0x404306
cmp eax, 2
jne 0x40430d
dec edx
mov dword [0xb52df8], edx
dec ecx
mov dword [0xb59c74], ecx
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
cmp eax, 0x3c
jbe 0x40432a
cmp eax, 0x6e
jbe 0x404334
cmp eax, 0xffffffb6
jbe 0x40434b
cmp eax, 0xffffffca
ja 0x40434b
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
mov dword [ebp - 0x20], eax
jne 0x404363
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x404376
cmp edx, ebx
ja 0x4043dc
mov dword [ebp - 0x14], edx
jmp 0x4043e7
cmp edx, ebx
jae 0x4043dc
sub ebx, edx
cmp eax, ebx
ja 0x4043dc
movsx ecx, byte [ecx]
mov edi, 1
sub edi, eax
mov eax, dword [ebp - 0x38]
add ebx, edi
add eax, edx
push ebx
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCRT.dll_memchr]
add esp, 0xc
test eax, eax
je 0x4043dc
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404495
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub ecx, eax
inc eax
mov dword [ebp - 0x18], eax
lea ebx, [ebx + ecx - 1]
movsx ecx, byte [edx]
push ebx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_memchr]
add esp, 0xc
test eax, eax
jne 0x4043a4
mov esi, dword [ebp - 0x1c]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [edx]
je 0x4046cd
mov eax, dword [ebp - 0x24]
cmp eax, 0x32
jbe 0x40440a
cmp eax, 0xfffffff2
jbe 0x404421
cmp eax, 6
ja 0x404421
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x14
add eax, 0xa
mov dword [0xb52d5c], eax
mov eax, dword [esi + 8]
mov ecx, esi
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0xb0]
push 1
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov eax, dword [eax + 4]
mov byte [ebp - 4], 7
test eax, eax
jne 0x404449
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x40446e
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [ebp - 0x48]
test edi, edi
je 0x4044a5
mov al, byte [edi - 1]
test al, al
je 0x4044a5
cmp al, 0xff
je 0x4044a5
test ebx, ebx
jne 0x4044cd
dec al
push ebx
lea ecx, [ebp - 0x4c]
mov byte [edi - 1], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4044f4
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x4043e7
test ebx, ebx
jne 0x4044b6
push 1
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4044f4
mov eax, dword [ebp - 0x40]
cmp eax, 0x1f
ja 0x4044c2
cmp eax, ebx
jae 0x4044da
push 1
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp - 0x48]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], ebx
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0xac]
mov byte [ebp - 4], 6
test eax, eax
je 0x40451f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404516
cmp al, 0xff
je 0x404516
dec al
mov byte [ecx], al
jmp 0x40451f
push ecx
call fcn.00404c40
add esp, 4
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov edi, dword [ecx]
mov esi, dword [edx + 8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov dword [ebp - 0x18], edi
jae 0x404554
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, dword [ebp - 0x34]
mov eax, ecx
sub eax, ebx
cmp eax, esi
jae 0x404561
mov esi, eax
mov eax, dword [ebp - 0x44]
cmp eax, edi
jae 0x40456d
mov edi, eax
mov dword [ebp - 0x18], edi
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
sub ecx, esi
mov edx, dword [eax]
sub edx, edi
cmp edx, ecx
ja 0x404582
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4045bd
mov al, byte [eax - 1]
test al, al
je 0x4045bd
cmp al, 0xff
je 0x4045bd
mov edi, dword [ebp - 0x38]
push 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x20]
not ecx
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
sub edi, esi
sub edi, ebx
cmp eax, esi
jae 0x4045e6
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
lea ecx, [esi + ebx]
add edx, ebx
add ecx, eax
push edi
add edx, eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [ebp - 0x18]
test eax, eax
ja 0x4045f1
test esi, esi
jbe 0x404662
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
sub ebx, esi
push 0
add ebx, ecx
lea ecx, [ebp - 0x3c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40465f
cmp esi, dword [ebp - 0x18]
jae 0x40462f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
push edi
mov edi, dword [ebp - 0x14]
add esi, edi
add ecx, edi
add esi, eax
add ecx, eax
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
jmp 0x404632
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x48]
test esi, esi
jne 0x40463f
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov byte [ebx + ecx], 0
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
lea edx, [ebx + 1]
cmp eax, 0x28
jbe 0x404672
cmp eax, 0x5a
jbe 0x40467c
cmp eax, 0xffffffca
jbe 0x404695
cmp eax, 0xffffffde
ja 0x404695
mov ecx, dword [0xb52d5c]
mov dword [0xb52f2c], 0x28
add ecx, 0x1e
mov dword [0xb52d5c], ecx
cmp eax, 0x14
jbe 0x40469f
cmp eax, 0x46
jbe 0x4046b1
cmp eax, 0xffffffde
jbe 0x40434d
cmp eax, 0xfffffff2
ja 0x40434d
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x1e
add eax, 0x14
mov dword [0xb52d5c], eax
jmp 0x40434d
mov eax, dword [ebp - 0x28]
add esi, 0x10
dec eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
jne 0x40431d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x48]
xor edi, edi
cmp eax, edi
je 0x404711
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404708
cmp al, 0xff
je 0x404708
dec al
mov byte [ecx], al
jmp 0x404711
push ecx
call fcn.00404c40
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], edi
cmp eax, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
je 0x40473e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404735
cmp al, 0xff
je 0x404735
dec al
mov byte [ecx], al
jmp 0x40473e
push ecx
call fcn.00404c40
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], edi
cmp eax, edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
je 0x40476b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x404762
cmp al, 0xff
je 0x404762
dec al
mov byte [ecx], al
jmp 0x40476b
push ecx
call fcn.00404c40
add esp, 4
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
cmp eax, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
je 0x404798
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40478f
cmp al, 0xff
je 0x40478f
dec al
mov byte [ecx], al
jmp 0x404798
push ecx
call fcn.00404c40
add esp, 4
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], edi
cmp eax, edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
je 0x4047c8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4047bf
cmp al, 0xff
je 0x4047bf
dec al
mov byte [ecx], al
jmp 0x4047c8
push ecx
call fcn.00404c40
add esp, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], edi
cmp ecx, edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 0
je 0x404804
mov al, byte [ecx - 1]
test al, al
je 0x4047fa
cmp al, 0xff
je 0x4047fa
dec al
mov byte [ecx - 1], al
jmp 0x404804
dec ecx
push ecx
call fcn.00404c40
add esp, 4
cmp word [ebp - 0x27a], di
je 0x4048f5
mov eax, dword [0x407040]
lea edx, [ebp - 0x2c]
push edi
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000001
call dword [0xb56cf0]
mov eax, dword [0xb52d68]
cmp eax, 1
jne 0x40484f
mov ecx, dword [0xb52f14]
mov dword [0xb52df8], edi
dec ecx
mov dword [0xb59c74], ecx
jmp 0x40486c
cmp eax, 2
jne 0x40486c
mov edx, dword [0xb52f24]
mov eax, dword [0xb52f14]
dec edx
dec eax
mov dword [0xb52df8], edx
mov dword [0xb59c74], eax
mov esi, dword [ebp - 0x24]
cmp esi, 0x14
jbe 0x404879
cmp esi, 0x46
jbe 0x404883
cmp esi, 0xffffffde
jbe 0x40489a
cmp esi, 0xfffffff2
ja 0x40489a
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x1e
add eax, 0x14
mov dword [0xb52d5c], eax
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x4048a6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x276]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edi
push edx
push eax
call dword [0xb56cec]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [0x407ba0]
cmp esi, 0x3c
jbe 0x4048d4
cmp esi, 0x6e
jbe 0x4048de
cmp esi, 0xffffffb6
jbe 0x4048f5
cmp esi, 0xffffffca
ja 0x4048f5
mov eax, dword [0xb52d5c]
mov dword [0xb52f2c], 0x32
add eax, 0x28
mov dword [0xb52d5c], eax
cmp word [ebp - 0x278], di
je 0x40494d
mov eax, dword [0x407040]
lea edx, [ebp - 0x2c]
push edi
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000002
call dword [0xb56cf0]
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x404929
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x276]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edi
push edx
push eax
call dword [0xb56cec]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [0x407ba0]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x404981
mov al, byte [ecx - 1]
test al, al
je 0x404977
cmp al, 0xff
je 0x404977
dec al
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00404c40
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret