Function at 0x40c7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xbd8
mov eax, dword [esp + 0xbf0]
mov dword [esp + 0xa0], 0xf
test eax, eax
mov dword [esp + 0xa4], 0x1e
mov dword [esp + 0xa8], 0x2d
mov dword [esp + 0xac], 0x3c
mov dword [esp + 0xb0], 0x78
mov dword [esp + 0xb4], 0xb4
mov dword [esp + 0xb8], 0xf0
mov dword [esp + 0xbc], 0x12c
mov dword [esp + 0xc0], 0x258
mov dword [esp + 0xc4], 0x708
mov dword [esp + 0xc8], 0xe10
mov dword [esp + 0xcc], 0x1c20
mov dword [esp + 0xd0], 0x3840
mov dword [esp + 0xd4], 0x7080
mov dword [esp + 0xd8], 0xa8c0
mov dword [esp + 0xdc], 0x15180
je 0x40c876
call fcn.00401a30
mov ecx, dword [esp + 0xbe0]
mov eax, dword [esp + 0xbec]
push ebx
push ebp
mov ebp, dword [esp + 0xbec]
push esi
mov esi, dword [esp + 0xbe8]
push edi
lea ebx, [ebp + 0x188]
push ecx
push esi
lea edx, [esp + 0x2a0]
mov byte [ebx], 0
push str._s_t_08x
mov byte [eax], 0
push edx
mov byte [esp + 0x164], 0
mov dword [esp + 0x20], ebx
mov dword [ebp + 0x334], 0
call fcn.00404890
push 0xb
call fcn.00401000
lea ecx, [esp + 0x3fc]
lea edx, [esp + 0x2ac]
push ecx
push edx
push 0x71
push eax
call fcn.004021b0
add esp, 0x24
cmp eax, 1
jne 0x40c98c
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x3f0]
push 0x412148
push ecx
call fcn.00401800
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20000
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401040
lea ecx, [esp + 0x3fc]
lea edx, [esp + 0x124]
push ecx
push edx
push eax
call fcn.00402ee0
add esp, 0x20
cmp eax, 1
je 0x40ca2c
mov esi, dword [esp + 0xbec]
push 0x20000
call fcn.00401040
lea ecx, [esp + 0x3ec]
mov dword [esp + 0x18], eax
push ecx
push esi
push eax
call fcn.00402ee0
mov edi, eax
add esp, 0x10
cmp edi, 1
je 0x40caa2
push 0x40
lea edx, [esp + 0x114]
push esi
push edx
call fcn.004052f0
lea eax, [esp + 0x11c]
push 0x424158
push eax
mov byte [esp + 0x164], 0
call fcn.00404b40
add esp, 0x14
test eax, eax
je 0x40ca23
mov byte [eax], 0
inc eax
push 0x20
lea ecx, [esp + 0x158]
push eax
push ecx
call fcn.004052f0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3f4]
lea eax, [esp + 0x11c]
push edx
push eax
push ecx
mov byte [esp + 0x18c], 0
call fcn.00402ee0
add esp, 0x18
mov edi, eax
cmp edi, 1
jne 0x40d8f1
push 0
call fcn.004048e2
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x3f4]
push 0x412148
push edx
mov dword [esp + 0x30], eax
mov dword [ebp + 0x33c], 0
call fcn.00401800
mov al, byte [esp + 0x168]
add esp, 0x14
test al, al
je 0x40cb14
mov edi, dword [esp + 0x94]
lea esi, [esp + 0x154]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x40cad2
test al, al
je 0x40ca9e
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x40cad2
add esi, 2
add edi, 2
test al, al
jne 0x40ca7a
xor eax, eax
jmp 0x40cad7
mov edi, dword [esp + 0xbec]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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]
jmp 0x40ca2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cb14
mov eax, dword [esp + 0xbfc]
push eax
push 0xf
call fcn.0040dfd0
mov eax, dword [esp + 0xc08]
add esp, 8
test eax, eax
je 0x40cafd
call fcn.00401a50
mov cx, word [0x424154]
pop edi
pop esi
mov word [ebx], cx
pop ebp
xor eax, eax
pop ebx
add esp, 0xbd8
ret
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x41]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp + 0x81]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x12b]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x14c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x15d]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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]
cmp byte [ebx], 0
jne 0x40cc19
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
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 [esp + 0x60]
push eax
call fcn.00404c4b
mov ecx, dword [esp + 0x68]
mov dword [ebp + 0x180], eax
push ecx
call fcn.00404c4b
mov ecx, dword [esp + 0x24]
add esp, 8
cmp ecx, eax
mov dword [ebp + 0x184], eax
jle 0x40cc4f
test eax, eax
jle 0x40cc4f
mov byte [ebp + 0x15d], 0
mov edx, dword [esp + 0x70]
push edx
call fcn.00404c4b
mov ebx, dword [esp + 0xbfc]
add esp, 4
test bl, 1
mov dword [ebp + 0x344], eax
je 0x40d111
mov edi, dword [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x19f]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x1c0]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebp + 0x286]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x29b]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x74]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x2b2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x2c9]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x7c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x2e0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x2f7]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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 [esp + 0x98]
push ecx
call fcn.00404c4b
mov word [ebp + 0x348], ax
mov al, byte [ebx]
add esp, 4
test al, al
jne 0x40cdf1
mov edi, dword [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x1c0]
lea edx, [ebp + 0x1c0]
test al, al
jne 0x40ce25
mov edi, dword [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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 al, byte [ebp + 0x286]
lea edx, [ebp + 0x286]
test al, al
jne 0x40ce59
mov edi, dword [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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]
lea eax, [ebp + 0x81]
push 0x412250
push eax
call fcn.00404b40
add esp, 8
test eax, eax
je 0x40d043
cmp byte [ebx], 0
je 0x40ce92
mov al, byte [ebp + 0x1c0]
test al, al
je 0x40ce92
mov al, byte [ebp + 0x286]
test al, al
jne 0x40d043
push 3
call fcn.00401000
mov dword [esp + 0x18], eax
lea edi, [ebp + 0x81]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2e8]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x2ec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x370]
push ecx
push 0x412250
push edx
call fcn.00401800
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jle 0x40d043
mov eax, dword [esp + 0x18]
xor esi, esi
xor edi, edi
test eax, eax
jle 0x40cf46
lea ebx, [esp + 0x368]
test edi, edi
je 0x40cf20
lea eax, [esp + esi + 0x178]
push 0x412250
push eax
call fcn.00404890
add esp, 8
add esi, eax
mov ecx, dword [ebx]
lea edx, [esp + esi + 0x178]
push ecx
push 0x424150
push edx
call fcn.00404890
add esp, 0xc
add esi, eax
mov eax, dword [esp + 0x18]
inc edi
add ebx, 4
cmp edi, eax
jl 0x40cf05
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x7e8]
lea ecx, [esp + 0x178]
push eax
push ecx
push 0x1f
push edx
call fcn.004021b0
lea eax, [esp + 0x228]
push 0
push eax
lea ecx, [esp + 0x800]
push 0x412148
push ecx
call fcn.00401800
mov al, byte [ebp + 0x19f]
lea ebx, [ebp + 0x19f]
add esp, 0x20
test al, al
jne 0x40cfb5
mov edi, dword [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x1c0]
test al, al
jne 0x40cfe7
mov edi, dword [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x1c0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x286]
test al, al
jne 0x40d019
mov edi, dword [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x286]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0
je 0x40d032
mov al, byte [ebp + 0x1c0]
test al, al
je 0x40d032
mov al, byte [ebp + 0x286]
test al, al
jne 0x40d043
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jg 0x40cef2
mov edi, dword [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x30e]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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]
cmp byte [ebx], 0
jne 0x40d095
lea edi, [ebp + 0x3ff]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x1c0]
lea ebx, [ebp + 0x1c0]
test al, al
jne 0x40d0c8
lea edi, [ebp + 0x420]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 0x286]
lea edx, [ebp + 0x286]
test al, al
jne 0x40d0fb
lea edi, [ebp + 0x441]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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]
cmp byte [ebx], 0
je 0x40d10a
mov dword [ebp + 0x33c], 1
mov ebx, dword [esp + 0xbf8]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00404c4b
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x338], eax
push edx
call fcn.00404c4b
mov byte [ebp + 0x340], al
mov eax, dword [esp + 0x48]
push eax
call fcn.00404c4b
mov ecx, dword [esp + 0x78]
mov byte [ebp + 0x341], al
push ecx
call fcn.00404c4b
add esp, 0x10
mov word [ebp + 0x34a], ax
test bl, 2
je 0x40d2de
test al, 1
je 0x40d1c8
lea edx, [esp + 0xf0]
push edx
push 0xc
call fcn.0040dfd0
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xbfc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc00]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40d1ad
call fcn.00401a50
mov edx, dword [esp + 0x10]
mov cx, word [0x42414c]
pop edi
pop esi
pop ebp
mov word [edx], cx
xor eax, eax
pop ebx
add esp, 0xbd8
ret
mov edi, dword [esp + 0xbf0]
mov esi, ebx
and esi, 8
jne 0x40d25b
lea eax, [ebp + 0x81]
push edi
push eax
lea eax, [esp + 0x118]
push eax
call fcn.0040d930
add esp, 0xc
test eax, eax
jne 0x40d25b
lea ecx, [esp + 0xf0]
push ecx
push 0xd
call fcn.0040dfd0
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0xc00]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xbfc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40d241
call fcn.00401a50
mov ecx, dword [esp + 0x10]
mov ax, word [0x424148]
pop edi
pop esi
mov word [ecx], ax
pop ebp
xor eax, eax
pop ebx
add esp, 0xbd8
ret
test edi, edi
je 0x40d2de
test esi, esi
jne 0x40d2de
push ebp
lea edx, [esp + 0x114]
push edi
push edx
call fcn.0040dc10
add esp, 0xc
test eax, eax
jne 0x40d2de
lea eax, [esp + 0xf0]
push eax
push 0xe
call fcn.0040dfd0
lea edi, [esp + 0xf8]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0xc00]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xbfc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40d2c4
call fcn.00401a50
mov ecx, dword [esp + 0x10]
mov ax, word [0x424144]
pop edi
pop esi
mov word [ecx], ax
pop ebp
xor eax, eax
pop ebx
add esp, 0xbd8
ret
test bl, 4
je 0x40d8d1
push 0x10003
call fcn.00401040
lea edx, [esp + 0x114]
mov esi, eax
push edx
lea eax, [esp + 0x180]
push str.1_t_s
push eax
mov dword [esp + 0x24], esi
call fcn.00404890
push 1
lea ecx, [esp + 0x18c]
push 0x43bec8
push ecx
push 0xa3
push 1
push esi
call fcn.004033b0
add esp, 0x28
cmp eax, 1
jne 0x40d8d1
lea edx, [esp + 0x3e8]
push edx
push esi
call fcn.00402e10
lea eax, [esp + 0x3f0]
push eax
call fcn.00404c4b
add esp, 0xc
mov dword [ebp + 0x334], eax
test eax, eax
mov dword [ebp + 0x338], 0
jle 0x40d72b
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x40d37d
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3e8]
push ecx
push esi
call fcn.004035c0
lea edx, [esp + 0x2c]
push 0
push edx
lea eax, [esp + 0x3f8]
push 0x412148
push eax
call fcn.00401800
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00404c4b
mov edx, dword [esp + 0x48]
mov ebx, eax
push edx
call fcn.00404c4b
add esp, 0x20
cmp edi, eax
jge 0x40d71c
cmp ebx, 2
jne 0x40d3fc
mov eax, dword [esp + 0x48]
push eax
call fcn.00404c4b
add esp, 4
mov esi, eax
call sub.SystemParam.dll_GetResetTokenTime
test eax, eax
jle 0x40d71c
mov ecx, edi
sub ecx, esi
cmp ecx, eax
jle 0x40d71c
xor ebx, ebx
mov dword [esp + 0x4c], 0x42139c
mov edx, dword [esp + 0x24]
add edx, 6
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x45c], eax
mov edx, dword [esp + 0x28]
mov byte [edx + 6], 0
mov eax, dword [esp + 0x28]
push eax
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x458], eax
mov edx, dword [esp + 0x30]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x460], eax
mov edx, dword [esp + 0x38]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x464], eax
mov edx, dword [esp + 0x44]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
add esp, 0x14
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov byte [ebp + ecx*8 + 0x491], al
mov ecx, dword [ebp + 0x338]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*4]
mov al, byte [ebp + edx*8 + 0x491]
cmp al, 8
lea ecx, [ebp + edx*8]
je 0x40d530
cmp al, 9
je 0x40d530
cmp al, 4
je 0x40d518
cmp al, 5
je 0x40d518
cmp al, 7
je 0x40d518
cmp al, 0xa
jne 0x40d500
mov eax, dword [esp + 0x30]
add ecx, 0x468
push 0x28
push ecx
push eax
call fcn.0040e590
add esp, 0xc
jmp 0x40d557
add ecx, 0x468
push 0x10
push ecx
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040e590
add esp, 0xc
jmp 0x40d557
mov edx, dword [esp + 0x30]
add ecx, 0x468
push 0x20
push ecx
push edx
call fcn.0040e590
add esp, 0xc
jmp 0x40d557
mov edi, dword [esp + 0x30]
lea edx, [ecx + 0x468]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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 [esp + 0x38]
push ecx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
add esp, 4
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea edx, [ecx + ecx*4]
mov byte [ebp + edx*8 + 0x492], al
mov ecx, dword [ebp + 0x338]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*4]
cmp byte [ebp + eax*8 + 0x491], 3
je 0x40d5e8
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00404c4b
add esp, 4
cmp eax, 0x3c
jne 0x40d5c7
mov ecx, dword [ebp + 0x338]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*4]
mov dword [ebp + edx*8 + 0x494], 0x3c
jmp 0x40d60d
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
mov edx, dword [esp + eax*4 + 0xb0]
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x494], edx
jmp 0x40d60d
mov eax, dword [esp + 0x3c]
push eax
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
add esp, 4
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x494], eax
mov edx, dword [esp + 0x40]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov byte [ebp + ecx*8 + 0x498], al
mov ecx, dword [ebp + 0x338]
mov edi, dword [esp + 0x48]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
or ecx, 0xffffffff
lea edx, [eax + eax*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + edx*8 + 0x499]
mov eax, ecx
mov esi, edi
mov 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 [esp + 0x4c]
push ecx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea edx, [ecx + ecx*4]
mov dword [ebp + edx*8 + 0x4a4], eax
mov eax, dword [esp + 0x54]
push eax
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x4ac], eax
mov edx, dword [esp + 0x5c]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x4b0], eax
mov edx, dword [esp + 0x68]
push edx
call fcn.00404c4b
mov edx, dword [ebp + 0x338]
mov edi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
lea ecx, [ecx + ecx*4]
mov dword [ebp + ecx*8 + 0x4a8], eax
mov ecx, dword [ebp + 0x338]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*4]
mov dword [ebp + edx*8 + 0x4b8], ebx
mov eax, dword [ebp + 0x338]
inc eax
mov dword [ebp + 0x338], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40d379
push 0x12
call fcn.00401000
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x338]
add esp, 4
mov dword [esp + 0x18], 0
test eax, eax
jle 0x40d8d1
mov eax, 0xfffffb6f
mov dword [esp + 0x10], 0
sub eax, ebp
lea ebx, [ebp + 0x491]
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x27], 8
je 0x40d789
mov al, byte [ebx]
cmp al, 1
je 0x40d789
cmp al, 3
jne 0x40d8a6
test dword [ebx + 0x17], 0xffff
jle 0x40d8a6
mov eax, dword [ebx - 0x35]
mov ecx, dword [ebx - 0x39]
push eax
push ecx
lea edx, [esp + 0x180]
push str._06d_08d
push edx
call fcn.00404890
mov esi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x18c]
push 0x43bec8
push eax
push 0xa5
push esi
call fcn.00402120
lea ecx, [esp + 0x40c]
push ecx
push esi
call fcn.00402170
lea edx, [esp + 0x414]
mov dword [ebx + 0x2b], 0
push edx
push esi
call fcn.00402150
add esp, 0x34
cmp eax, 1
jne 0x40d8a6
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x3f0]
push 0x412148
push ecx
call fcn.00401800
mov edx, dword [esp + 0x38]
push edx
call fcn.00404c4b
mov ecx, dword [esp + 0x30]
add esp, 0x14
cmp ecx, eax
jge 0x40d88c
mov eax, dword [esp + 0x2c]
push eax
call fcn.00404c4b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x2b]
add ecx, edx
mov dword [ebp + ecx*4 + 0xb38], eax
mov eax, dword [ebx + 0x2b]
mov ecx, dword [esp + 0x24]
mov edx, eax
shl edx, 5
add ecx, edx
mov edx, eax
mov edi, dword [esp + 0x38]
add edx, ecx
add edx, ebx
inc eax
mov dword [ebx + 0x2b], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [edx + ebp + 0x4c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov 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 [esp + 0x34]
push ecx
call fcn.00404c4b
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 0x2f], eax
lea edx, [esp + 0x3e8]
push edx
push esi
call fcn.00402150
add esp, 8
cmp eax, 1
je 0x40d7f0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x338]
inc eax
add esi, 0x1ea
add ebx, 0x7a8
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
jl 0x40d768
mov eax, dword [esp + 0xc00]
test eax, eax
je 0x40d8e1
call fcn.00401a50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbd8
ret
mov eax, dword [esp + 0xbfc]
push eax
push 0xf
call fcn.0040dfd0
mov eax, dword [esp + 0xc08]
mov cx, word [0x424154]
add esp, 8
mov word [ebx], cx
test eax, eax
je 0x40d91d
call fcn.00401a50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbd8
ret