Function at 0x40cab0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4928aa
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov esi, dword [esp + 0x530]
lea eax, [esp + 0xc0]
xor ebp, ebp
push eax
mov edi, ecx
push str.Client
mov dword [esp + 0x24], edi
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], ebp
call fcn.00407d10
test eax, eax
je 0x40cb44
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x40cb64
push 0x244
push ebp
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0x32
push eax
push ebp
push ebp
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, edi
call fcn.00409b00
xor ecx, ecx
push 6
mov word [esp + 0x5c], cx
push str.client
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
call fcn.00402220
lea edx, [esp + 0x54]
lea ecx, [edi + 0x60]
push edx
mov dword [esp + 0x52c], ebp
call fcn.0040bdf0
mov ecx, dword [esp + 0xb0]
mov dword [eax], ecx
mov edx, dword [esp + 0xb4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0xb8]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0xbc]
mov dword [eax + 0xc], edx
cmp dword [esp + 0x6c], 8
mov dword [esp + 0x528], 0xffffffff
jb 0x40cbe8
mov eax, dword [esp + 0x58]
push eax
call fcn.004440cb
add esp, 4
cmp esi, ebp
jne 0x40cbf0
xor eax, eax
jmp 0x40cc04
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cbf5
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00401d20
mov eax, dword [esi]
push eax
push 0x4bd788
lea esi, [edi + 0x3c]
push 0x49ac40
push esi
call fcn.004020e0
mov eax, dword [esi]
push eax
call fcn.00435a20
mov edi, eax
add esp, 0x14
mov dword [esp + 0x28], edi
cmp edi, ebp
jne 0x40cc42
xor eax, eax
jmp 0x40d857
xor ecx, ecx
lea eax, [edi + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004440d6
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x24], ebx
cmp ebx, ebp
je 0x40d857
mov word [ebx], ax
mov eax, dword [esi]
push eax
push edi
push ebx
push str.ParamName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x88]
call fcn.00409c40
lea eax, [esp + 0x88]
push eax
xor ecx, ecx
xor edx, edx
push edi
push ebx
mov dword [esp + 0x534], 1
mov word [ebx + edi*2 - 4], cx
mov word [ebx + edi*2 - 2], dx
call fcn.00436110
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x40cf10
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x40ccf4
mov ecx, dword [esp + 0x18]
cmp ebp, eax
jb 0x40cd08
call fcn.00467a4e
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x18]
cmp dword [esi + ecx + 0x18], 8
jb 0x40cd15
mov esi, dword [esi + ecx + 4]
jmp 0x40cd19
lea esi, [esi + ecx + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x528], 2
jle 0x40cd5a
push 0x3d
push eax
call fcn.00467cfa
add esp, 8
test eax, eax
je 0x40cd5a
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x40cd5a
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404dc0
lea ecx, [esp + 0x14]
call fcn.00405480
lea ecx, [esp + 0x14]
call fcn.00405d70
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x116]
push edx
mov word [esp + 0x118], cx
call fcn.00467850
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
add eax, 0x3c
mov eax, dword [eax]
push eax
push 0x103
lea eax, [esp + 0x114]
push eax
push 0x49ab28
push ecx
push str.ParamName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10c], 0
je 0x40ceb7
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x31e]
push eax
mov word [esp + 0x320], dx
call fcn.00467850
mov ecx, dword [esp + 0x20]
push ecx
push 0x49aa7c
push 0x103
lea edx, [esp + 0x32c]
push 0x104
push edx
call fcn.00467824
lea eax, [esp + 0x334]
push 0x104
push eax
call fcn.00467f05
add esp, 0x28
xor ecx, ecx
lea eax, [esp + 0x314]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], cx
lea edx, [eax + 2]
jmp 0x40ce40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x318]
push edx
lea ecx, [esp + 0x5c]
call fcn.00402220
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
add ecx, 0x40
mov byte [esp + 0x52c], 3
call fcn.0040bcc0
lea edx, [esp + 0x10c]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x40ce84
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x110]
push ecx
mov ecx, eax
call fcn.00402220
cmp dword [esp + 0x6c], 8
jb 0x40ceb7
mov edx, dword [esp + 0x58]
push edx
call fcn.004440cb
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x528], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cedf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
add dword [esp + 0x18], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
cmp ebp, eax
jl 0x40ccf0
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 0x3c
mov word [ebx], cx
mov eax, dword [eax]
push eax
push edi
push ebx
push 0x49ac24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x70]
call fcn.00409c40
lea ecx, [esp + 0x70]
push ecx
xor edx, edx
xor eax, eax
push edi
push ebx
mov byte [esp + 0x534], 4
mov word [ebx + edi*2 - 4], dx
mov word [ebx + edi*2 - 2], ax
call fcn.00436110
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x88]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x2c], ebp
jle 0x40d432
mov dword [esp + 0x38], ebp
nop
cmp dword [esp + 0x2c], eax
jb 0x40cf9f
call fcn.00467a4e
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x38]
cmp dword [esi + eax + 0x18], 8
jb 0x40cfb0
mov esi, dword [esi + eax + 4]
jmp 0x40cfb4
lea esi, [esi + eax + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x528], 5
jle 0x40d036
push 0x3d
push eax
call fcn.00467cfa
add esp, 8
test eax, eax
je 0x40d036
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov edi, eax
test edi, edi
jle 0x40d036
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x40d464
cmp dword [ecx - 4], 1
jle 0x40d00e
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00401490
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ecx + edi*2], ax
test esi, esi
jl 0x40d464
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d464
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + esi*2], cx
lea ecx, [esp + 0x14]
call fcn.00405480
lea ecx, [esp + 0x14]
call fcn.00405d70
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x31e]
push ecx
mov word [esp + 0x320], ax
call fcn.00467850
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x3c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
push 0x103
lea edx, [esp + 0x31c]
push edx
push 0x49ab28
push eax
push 0x49ac24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0044ca07
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d46e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esi + 0x38]
mov eax, dword [eax]
lea ecx, [esp + 0x314]
push ecx
push eax
push 0x4bd788
lea edx, [esp + 0x24]
push str._sSkin_s_s
push edx
mov byte [esp + 0x53c], 6
call fcn.004020e0
add esp, 0x14
cmp word [esp + 0x314], 0
je 0x40d3a6
push 3
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x20]
call fcn.00405550
mov eax, dword [eax]
push 0x49ac00
push eax
call fcn.00467c67
add esp, 8
test eax, eax
mov eax, dword [esp + 0xac]
sete byte [esp + 0x23]
add eax, 0xfffffff0
mov byte [esp + 0x528], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], 0
je 0x40d16d
mov ecx, dword [esp + 0x18]
push 0x2050
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebp, eax
jmp 0x40d2cf
push 3
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x20]
call fcn.00405550
mov eax, dword [eax]
push 0x49abf8
push eax
call fcn.00467c67
add esp, 8
test eax, eax
mov eax, dword [esp + 0xa4]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x528], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40d3a2
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00442c30
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov esi, eax
push edx
push esi
call fcn.00442a00
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0xb8]
push eax
push ecx
push edx
push esi
call fcn.00442970
push esi
mov edi, eax
call fcn.004440cb
push 0x2c
lea eax, [esp + 0x100]
push 0
push eax
call fcn.00467850
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0x10c], ecx
mov ecx, 1
mov word [esp + 0x114], cx
mov ecx, dword [esp + 0xd8]
imul ecx, eax
mov edx, eax
neg edx
mov dword [esp + 0x110], edx
mov edx, 0x18
add esp, 0x38
mov dword [esp + 0xd0], 0x28
mov word [esp + 0xde], dx
mov dword [esp + 0xe4], ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
lea edx, [esp + 0xb0]
push edx
mov esi, eax
push 0
lea eax, [esp + 0xe0]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
mov ebp, eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xa8]
push ecx
push edi
push edx
call fcn.00467fe0
push edi
call fcn.004440cb
mov ebx, dword [esp + 0x34]
add esp, 0x10
test ebp, ebp
je 0x40d3a6
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x116]
push ecx
mov word [esp + 0x118], ax
call fcn.00467850
mov edx, dword [esp + 0x20]
push edx
push 0x49aa7c
push 0x103
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.00467824
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call fcn.00467f05
add esp, 0x28
xor edx, edx
lea eax, [esp + 0x10c]
mov word [esp + 0x58], dx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
lea edx, [eax + 2]
jmp 0x40d350
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d350
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x5c]
call fcn.00402220
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, 0xffffff80
mov byte [esp + 0x52c], 9
call fcn.0040bf20
mov dword [eax], ebp
cmp dword [esp + 0x6c], 8
jb 0x40d3a6
mov edx, dword [esp + 0x58]
push edx
call fcn.004440cb
add esp, 4
jmp 0x40d3a6
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x528], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x528], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x2c]
add dword [esp + 0x38], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x40cf90
mov edi, dword [esp + 0x28]
xor ebp, ebp
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add eax, 0x3c
mov word [ebx], cx
mov eax, dword [eax]
push eax
push edi
push ebx
push str.Region
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 4
call fcn.0044409c
add esp, 4
cmp eax, ebp
je 0x40d478
lea edx, [esp + 0x3c]
mov dword [eax], edx
jmp 0x40d47a
push 0x80070057
call fcn.004010a0
push 0x80004005
call fcn.004010a0
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
lea edx, [esp + 0x3c]
push edx
xor eax, eax
xor ecx, ecx
push edi
push ebx
mov byte [esp + 0x534], 0xb
mov word [ebx + edi*2 - 4], ax
mov word [ebx + edi*2 - 2], cx
call fcn.00436110
push ebx
call fcn.004440cb
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x10
xor ebx, ebx
cmp eax, ebp
jle 0x40d74c
xor edi, edi
mov dword [esp + 0x24], edi
cmp ebx, eax
jb 0x40d4ef
call fcn.00467a4e
mov esi, dword [esp + 0x48]
cmp dword [esi + edi + 0x18], 8
jb 0x40d4fc
mov esi, dword [esi + edi + 4]
jmp 0x40d500
lea esi, [esi + edi + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebp
mov byte [esp + 0x528], 0xc
jle 0x40d581
push 0x3d
push eax
call fcn.00467cfa
add esp, 8
cmp eax, ebp
je 0x40d581
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, ebp
jle 0x40d581
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x40d464
cmp dword [ecx - 4], 1
jle 0x40d559
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401490
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp esi, ebp
mov word [ecx + edi*2], dx
jl 0x40d464
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d464
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ecx + esi*2], ax
lea ecx, [esp + 0x14]
call fcn.00405480
lea ecx, [esp + 0x14]
call fcn.00405d70
push 0x206
lea eax, [esp + 0x31a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x320], dx
call fcn.00467850
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push eax
push 0x103
lea ecx, [esp + 0x31c]
push ecx
push 0x49ab28
push edx
push str.Region
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x318]
push ecx
call fcn.00435d80
add esp, 8
test eax, eax
je 0x40d6f3
push 0x206
lea eax, [esp + 0x112]
xor edx, edx
push ebp
push eax
mov word [esp + 0x118], dx
call fcn.00467850
mov ecx, dword [esp + 0x20]
push ecx
push 0x49aa7c
push 0x103
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.00467824
lea eax, [esp + 0x12c]
push 0x104
push eax
call fcn.00467f05
add esp, 0x28
xor ecx, ecx
lea eax, [esp + 0x10c]
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebp
mov word [esp + 0xd4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40d676
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xd8]
call fcn.00402220
lea eax, [esp + 0xd0]
push eax
lea ecx, [esi + 0x60]
mov byte [esp + 0x52c], 0xd
call fcn.0040bdf0
mov ecx, dword [esp + 0xfc]
mov dword [eax], ecx
mov edx, dword [esp + 0x100]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x104]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x108]
mov dword [eax + 0xc], edx
cmp dword [esp + 0xe8], 8
jb 0x40d6f3
mov eax, dword [esp + 0xd4]
push eax
call fcn.004440cb
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x528], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d71b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add edi, 0x1c
add eax, edx
cmp ebx, eax
mov dword [esp + 0x24], edi
jl 0x40d4e4
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xb8], 1
call fcn.0040c2e0
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x40d789
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x48]
push edx
push ecx
push eax
call fcn.00406590
mov edx, dword [esp + 0x58]
push edx
call fcn.004440cb
add esp, 0x14
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
call fcn.004440cb
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebp
je 0x40d7d5
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x7c]
push edx
push ecx
push eax
call fcn.00406590
mov edx, dword [esp + 0x8c]
push edx
call fcn.004440cb
add esp, 0x14
mov eax, dword [esp + 0x70]
push eax
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
call fcn.004440cb
mov eax, dword [esp + 0x98]
add esp, 4
cmp eax, ebp
je 0x40d82d
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x94]
push edx
push ecx
push eax
call fcn.00406590
mov edx, dword [esp + 0xa4]
push edx
call fcn.004440cb
add esp, 0x14
mov eax, dword [esp + 0x88]
push eax
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
call fcn.004440cb
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004677ab
add esp, 0x518
ret 4