Function at 0x4066b0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f998
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x453544]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push esi
push edi
mov eax, dword [0x453544]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0x200]
push 0x14b
push eax
mov byte [esp + 0x2b], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x457930]
mov edi, dword [0x45792c]
cmp edi, eax
mov esi, eax
jbe 0x406733
call fcn.0042825a
mov eax, dword [0x457930]
mov edi, dword [0x45792c]
cmp edi, eax
mov ebx, 0x457928
jbe 0x406741
call fcn.0042825a
push esi
push ebx
push edi
mov eax, 0x457928
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004076e0
mov edi, dword [esp + 0x2c]
lea edx, [edi + 0xd4]
push edx
lea ecx, [edi + 0x78]
call fcn.0041066e
lea esi, [edi + 0xd8]
mov ecx, esi
call fcn.00401a70
push edi
xor ebx, ebx
call fcn.00405c50
test eax, eax
je 0x4067f0
mov eax, ebx
add ebx, 1
cmp eax, 2
jge 0x4067f0
mov ecx, edi
mov eax, dword [ecx + 0xdc]
push eax
push 0x103
lea edx, [esp + 0x74]
push edx
push 0x4471b0
push str.Root
push 0x4481e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.004019d0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x4067f0
mov edx, edi
push edx
call fcn.00405c50
test eax, eax
jne 0x406780
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x406814
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x296f
call fcn.0040b4c0
add esp, 4
mov dword [esp + 0x698], ebx
jmp 0x40684f
mov esi, edi
mov eax, dword [esi + 0xdc]
push eax
push ebx
push str.status
push 0x4481e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jne 0x40688e
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x2763
call fcn.0040b4c0
add esp, 4
mov dword [esp + 0x698], 1
mov eax, dword [eax]
push ebx
push ebx
push eax
call fcn.00416dca
mov dword [esp + 0x698], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406884
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1b], 0
jmp 0x407211
mov eax, dword [esi + 0xdc]
push eax
push 0x103
lea ecx, [esp + 0x27c]
push ecx
push 0x4471b0
push 0x448200
push 0x4481e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x274]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4068c1
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x698], 2
lea ebx, [esp + 0x10]
lea esi, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.00407470
mov eax, dword [esp + 0x24]
xor ebx, ebx
test edi, edi
jbe 0x406979
lea esp, [esp]
cmp word [esp + ebx*2 + 0x274], 0x7c
jne 0x406972
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x10], ebx
je 0x406946
mov edx, dword [esp + 0x28]
mov ecx, eax
sub ecx, esi
sub edx, esi
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x406946
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x24], eax
jmp 0x406972
cmp esi, eax
mov edi, eax
jbe 0x406951
call fcn.0042825a
push edi
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
call fcn.00407800
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
add ebx, 1
cmp ebx, edi
jb 0x406910
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x10], edi
je 0x4069a4
mov edx, dword [esp + 0x28]
mov ecx, eax
sub ecx, esi
sub edx, esi
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x4069a4
lea ebx, [eax + 4]
mov dword [eax], edi
mov dword [esp + 0x24], ebx
jmp 0x4069c8
cmp esi, eax
mov edi, eax
jbe 0x4069af
call fcn.0042825a
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00407800
mov ebx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x274]
mov byte [esp + 0x698], 3
mov edx, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
test eax, eax
je 0x406c1c
mov ecx, ebx
sub ecx, eax
sar ecx, 2
cmp ecx, edx
jbe 0x406c1c
cmp eax, ebx
mov esi, eax
jbe 0x406a20
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
lea edi, [esi + ecx*4]
cmp edi, ebx
mov dword [esp + 0x5c], esi
ja 0x406a3b
cmp edi, eax
jae 0x406a48
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
cmp edi, dword [edx + 8]
jb 0x406a5e
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x406c17
mov edx, dword [esp + 0x14]
mov ecx, ebx
sub ecx, eax
sar ecx, 2
add edx, 0xffffffff
cmp ecx, edx
jbe 0x406c17
cmp eax, ebx
mov esi, eax
jbe 0x406a8b
call fcn.0042825a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
lea ebx, [esi + ecx*4 - 4]
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x38], esi
ja 0x406aa9
cmp ebx, eax
jae 0x406ab2
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
cmp ebx, dword [edx + 8]
jb 0x406ac4
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov esi, dword [edi]
sub esi, dword [ebx]
sub esi, 1
test esi, esi
jle 0x406c05
mov eax, dword [esp + 0x50]
push esi
push eax
lea ecx, [esp + 0x484]
push ecx
call fcn.004280f3
add esp, 0xc
lea edx, [esp + 0x47c]
push edx
lea ecx, [esp + 0x34]
mov word [esp + esi*2 + 0x480], 0
call fcn.00401c70
mov byte [esp + 0x698], 4
mov esi, dword [esp + 0x44]
test esi, esi
mov edx, dword [esp + 0x48]
je 0x406b56
mov ecx, dword [esp + 0x4c]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x406b56
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x10], 0
mov eax, dword [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x38]
push eax
push 1
push edx
mov esi, edx
call fcn.00408970
add esp, 0x14
add esi, 4
mov dword [esp + 0x48], esi
jmp 0x406b76
cmp esi, edx
mov edi, edx
jbe 0x406b61
call fcn.0042825a
push edi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004078c0
mov byte [esp + 0x698], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406c17
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp ecx, edi
jbe 0x406c17
cmp eax, edx
mov esi, eax
jbe 0x406bcc
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x54], esi
lea esi, [esi + edi*4]
cmp esi, edx
lea ecx, [esp + 0x1c]
mov ebx, ecx
ja 0x406be1
cmp esi, eax
jae 0x406bea
call fcn.0042825a
mov eax, dword [esp + 0x20]
cmp esi, dword [ebx + 8]
jb 0x406bf8
call fcn.0042825a
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
lea edx, [esp + ecx*2 + 0x276]
mov dword [esp + 0x50], edx
add dword [esp + 0x14], 1
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
jmp 0x4069f6
call fcn.00407780
push 0x4471b0
push str.StartApp
push 0x4474e0
lea eax, [esp + 0x6c]
push eax
mov ecx, 0x457880
call fcn.004137a7
mov byte [esp + 0x698], 5
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406c5c
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406c86
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406cb0
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov byte [esp + 0x698], 6
mov dword [edi + 0x234], ebx
mov dword [esp + 0x14], ebx
jmp 0x406ce0
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4070f5
mov ecx, dword [esp + 0x48]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, ebx
jbe 0x4070f5
cmp edx, ecx
mov esi, dword [edi + 0xdc]
mov dword [esp + 0x10], esi
mov esi, edx
jbe 0x406d1c
call fcn.0042825a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x68], esi
lea esi, [esi + ebx*4]
cmp esi, ecx
lea eax, [esp + 0x40]
mov edi, eax
ja 0x406d31
cmp esi, edx
jae 0x406d36
call fcn.0042825a
cmp esi, dword [edi + 8]
jb 0x406d40
call fcn.0042825a
mov ecx, dword [esp + 0x10]
mov esi, dword [esi]
push ecx
push 0x103
lea edx, [esp + 0x74]
push edx
push 0x4471b0
push str.Path
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4070e1
mov edx, dword [esp + 0x48]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, ebx
jbe 0x4070e1
cmp ecx, edx
mov esi, ecx
jbe 0x406d94
call fcn.0042825a
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], esi
lea esi, [esi + ebx*4]
cmp esi, edx
lea eax, [esp + 0x40]
mov edi, eax
ja 0x406da9
cmp esi, ecx
jae 0x406dae
call fcn.0042825a
cmp esi, dword [edi + 8]
jb 0x406db8
call fcn.0042825a
mov eax, dword [esi]
mov edi, dword [esp + 0x34]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x406e68
cmp dword [edi + 0xc], 0
jl 0x406e5a
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x406e5a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x406dfd
cmp eax, dword [esi]
jne 0x406dfd
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x406e38
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4070e6
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00427b54
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e51
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x34], ebx
jmp 0x406e68
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004019d0
mov ecx, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x406c52
mov eax, dword [esp + 0x60]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406ea6
test dx, dx
je 0x406ea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406ea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406e80
xor eax, eax
jmp 0x406eab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406ebd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x234], ecx
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ec4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x40]
call fcn.004019d0
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 0xdc]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4070e1
mov edx, dword [esp + 0x48]
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, dword [esp + 0x14]
jbe 0x4070e1
cmp ecx, edx
mov esi, ecx
jbe 0x406f20
call fcn.0042825a
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], esi
lea esi, [esi + eax*4]
cmp esi, edx
ja 0x406f39
cmp esi, ecx
jae 0x406f3e
call fcn.0042825a
cmp esi, dword [ebx + 8]
jb 0x406f48
call fcn.0042825a
mov esi, dword [esi]
push edi
push 0x103
lea ecx, [esp + 0x74]
push ecx
push 0x4471b0
push str.Param
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x34]
call fcn.00401c70
mov byte [esp + 0x698], 7
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], 0
mov esi, dword [esp + 0x38]
je 0x40707e
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov edi, 0x448220
mov dword [esp + 0x50], edi
mov ecx, 1
sub ecx, dword [esi - 4]
sub edi, esi
lea ebx, [edx + 1]
sub eax, ebx
sar edi, 1
or eax, ecx
mov dword [esp + 0x10], edx
jge 0x406fc8
push ebx
lea ecx, [esp + 0x3c]
call fcn.004017c0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
cmp edi, edx
ja 0x406fd3
lea ecx, [esi + edi*2]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push 2
push edx
lea ecx, [esi + eax*2]
push 2
push ecx
call fcn.00427b54
add esp, 0x10
test ebx, ebx
jl 0x4070eb
cmp ebx, dword [esi - 8]
jg 0x4070eb
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esi - 0xc]
mov dword [esp + 0x10], eax
sub eax, esi
sar eax, 1
mov edx, eax
mov eax, dword [esi - 8]
lea edi, [ebx + ecx]
mov dword [esp + 0x58], ecx
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
mov dword [esp + 0x50], edx
jge 0x407048
push edi
lea ecx, [esp + 0x3c]
call fcn.004017c0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
cmp edx, ebx
ja 0x407053
lea edx, [esi + edx*2]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.00427b54
add esp, 0x10
test edi, edi
jl 0x4070eb
cmp edi, dword [esi - 8]
jg 0x4070eb
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
lea ebx, [esp + 0x34]
call fcn.004073a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [edx + 0x200]
push ecx
push 0x14a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x698], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], 1
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
jmp 0x406ce0
call fcn.00407780
call fcn.00401720
push 0x80070057
call fcn.00401770
mov eax, dword [edi + 0x234]
mov ecx, dword [edi + 0x200]
xor ebx, ebx
push ebx
push eax
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x698], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407155
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407175
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x698], 3
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40719d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x698], 2
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x4071e9
mov eax, dword [esp + 0x48]
cmp esi, eax
mov edi, eax
je 0x4071e0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4071b7
mov esi, dword [esp + 0x44]
push esi
call fcn.0040bffc
add esp, 4
mov dword [esp + 0x698], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x407211
push eax
call fcn.0040bffc
add esp, 4
movzx eax, byte [esp + 0x1b]
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0042769e
mov esp, ebp
pop ebp
ret 4