Function at 0x40ca80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49252a
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
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.00407ce0
test eax, eax
je 0x40cb14
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x40cb34
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.00409ad0
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.00402210
lea edx, [esp + 0x54]
lea ecx, [edi + 0x60]
push edx
mov dword [esp + 0x52c], ebp
call fcn.0040bdc0
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 0x40cbb8
mov eax, dword [esp + 0x58]
push eax
call fcn.00443d03
add esp, 4
cmp esi, ebp
jne 0x40cbc0
xor eax, eax
jmp 0x40cbd4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cbc5
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00401d10
mov eax, dword [esi]
push eax
push 0x4bc788
lea esi, [edi + 0x3c]
push 0x499c40
push esi
call fcn.004020d0
mov eax, dword [esi]
push eax
call fcn.004356f0
mov edi, eax
add esp, 0x14
mov dword [esp + 0x28], edi
cmp edi, ebp
jne 0x40cc12
xor eax, eax
jmp 0x40d827
xor ecx, ecx
lea eax, [edi + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443d0e
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [esp + 0x24], ebx
cmp ebx, ebp
je 0x40d827
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.00409c10
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.00435de0
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 0x40cee0
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x40ccc4
mov ecx, dword [esp + 0x18]
cmp ebp, eax
jb 0x40ccd8
call fcn.0046767e
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x18]
cmp dword [esi + ecx + 0x18], 8
jb 0x40cce5
mov esi, dword [esi + ecx + 4]
jmp 0x40cce9
lea esi, [esi + ecx + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x528], 2
jle 0x40cd2a
push 0x3d
push eax
call fcn.0046792a
add esp, 8
test eax, eax
je 0x40cd2a
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x40cd2a
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404d60
lea ecx, [esp + 0x14]
call fcn.00405430
lea ecx, [esp + 0x14]
call fcn.00405d20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x116]
push edx
mov word [esp + 0x118], cx
call fcn.00467480
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 0x499b28
push ecx
push str.ParamName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10c], 0
je 0x40ce87
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x31e]
push eax
mov word [esp + 0x320], dx
call fcn.00467480
mov ecx, dword [esp + 0x20]
push ecx
push 0x499a7c
push 0x103
lea edx, [esp + 0x32c]
push 0x104
push edx
call fcn.0046745c
lea eax, [esp + 0x334]
push 0x104
push eax
call fcn.00467b35
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 0x40ce10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce10
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x318]
push edx
lea ecx, [esp + 0x5c]
call fcn.00402210
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push eax
add ecx, 0x40
mov byte [esp + 0x52c], 3
call fcn.0040bc90
lea edx, [esp + 0x10c]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x40ce54
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x110]
push ecx
mov ecx, eax
call fcn.00402210
cmp dword [esp + 0x6c], 8
jb 0x40ce87
mov edx, dword [esp + 0x58]
push edx
call fcn.00443d03
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 0x40ceaf
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 0x40ccc0
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 0x499c24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x70]
call fcn.00409c10
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.00435de0
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 0x40d402
mov dword [esp + 0x38], ebp
nop
cmp dword [esp + 0x2c], eax
jb 0x40cf6f
call fcn.0046767e
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x38]
cmp dword [esi + eax + 0x18], 8
jb 0x40cf80
mov esi, dword [esi + eax + 4]
jmp 0x40cf84
lea esi, [esi + eax + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x528], 5
jle 0x40d006
push 0x3d
push eax
call fcn.0046792a
add esp, 8
test eax, eax
je 0x40d006
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov edi, eax
test edi, edi
jle 0x40d006
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x40d434
cmp dword [ecx - 4], 1
jle 0x40cfde
mov edx, esi
push edx
lea ecx, [esp + 0x18]
call fcn.00401480
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ecx + edi*2], ax
test esi, esi
jl 0x40d434
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d434
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.00405430
lea ecx, [esp + 0x14]
call fcn.00405d20
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x31e]
push ecx
mov word [esp + 0x320], ax
call fcn.00467480
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 0x499b28
push eax
push 0x499c24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.0044c634
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40d43e
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 0x4bc788
lea edx, [esp + 0x24]
push str._sSkin_s_s
push edx
mov byte [esp + 0x53c], 6
call fcn.004020d0
add esp, 0x14
cmp word [esp + 0x314], 0
je 0x40d376
push 3
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x20]
call fcn.00405500
mov eax, dword [eax]
push 0x499c00
push eax
call fcn.00467897
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 0x40d117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x23], 0
je 0x40d13d
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 0x40d29f
push 3
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x20]
call fcn.00405500
mov eax, dword [eax]
push 0x499bf8
push eax
call fcn.00467897
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 0x40d190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40d372
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00442880
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov esi, eax
push edx
push esi
call fcn.00442650
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0xb8]
push eax
push ecx
push edx
push esi
call fcn.004425c0
push esi
mov edi, eax
call fcn.00443d03
push 0x2c
lea eax, [esp + 0x100]
push 0
push eax
call fcn.00467480
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.00467c10
push edi
call fcn.00443d03
mov ebx, dword [esp + 0x34]
add esp, 0x10
test ebp, ebp
je 0x40d376
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x116]
push ecx
mov word [esp + 0x118], ax
call fcn.00467480
mov edx, dword [esp + 0x20]
push edx
push 0x499a7c
push 0x103
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.0046745c
lea ecx, [esp + 0x12c]
push 0x104
push ecx
call fcn.00467b35
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 0x40d320
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d320
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x5c]
call fcn.00402210
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
sub ecx, 0xffffff80
mov byte [esp + 0x52c], 9
call fcn.0040bef0
mov dword [eax], ebp
cmp dword [esp + 0x6c], 8
jb 0x40d376
mov edx, dword [esp + 0x58]
push edx
call fcn.00443d03
add esp, 4
jmp 0x40d376
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 0x40d39e
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 0x40d3c6
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 0x40cf60
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.00443cd4
add esp, 4
cmp eax, ebp
je 0x40d448
lea edx, [esp + 0x3c]
mov dword [eax], edx
jmp 0x40d44a
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.00435de0
push ebx
call fcn.00443d03
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 0x40d71c
xor edi, edi
mov dword [esp + 0x24], edi
cmp ebx, eax
jb 0x40d4bf
call fcn.0046767e
mov esi, dword [esp + 0x48]
cmp dword [esi + edi + 0x18], 8
jb 0x40d4cc
mov esi, dword [esi + edi + 4]
jmp 0x40d4d0
lea esi, [esi + edi + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebp
mov byte [esp + 0x528], 0xc
jle 0x40d551
push 0x3d
push eax
call fcn.0046792a
add esp, 8
cmp eax, ebp
je 0x40d551
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, ebp
jle 0x40d551
mov esi, dword [ecx - 0xc]
cmp edi, esi
jge 0x40d434
cmp dword [ecx - 4], 1
jle 0x40d529
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401480
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp esi, ebp
mov word [ecx + edi*2], dx
jl 0x40d434
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40d434
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.00405430
lea ecx, [esp + 0x14]
call fcn.00405d20
push 0x206
lea eax, [esp + 0x31a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x320], dx
call fcn.00467480
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 0x499b28
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.00435a50
add esp, 8
test eax, eax
je 0x40d6c3
push 0x206
lea eax, [esp + 0x112]
xor edx, edx
push ebp
push eax
mov word [esp + 0x118], dx
call fcn.00467480
mov ecx, dword [esp + 0x20]
push ecx
push 0x499a7c
push 0x103
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.0046745c
lea eax, [esp + 0x12c]
push 0x104
push eax
call fcn.00467b35
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 0x40d646
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0xd8]
call fcn.00402210
lea eax, [esp + 0xd0]
push eax
lea ecx, [esi + 0x60]
mov byte [esp + 0x52c], 0xd
call fcn.0040bdc0
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 0x40d6c3
mov eax, dword [esp + 0xd4]
push eax
call fcn.00443d03
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 0x40d6eb
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 0x40d4b4
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xb8], 1
call fcn.0040c2b0
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x40d759
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x48]
push edx
push ecx
push eax
call fcn.00406630
mov edx, dword [esp + 0x58]
push edx
call fcn.00443d03
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.00443d03
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebp
je 0x40d7a5
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x7c]
push edx
push ecx
push eax
call fcn.00406630
mov edx, dword [esp + 0x8c]
push edx
call fcn.00443d03
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.00443d03
mov eax, dword [esp + 0x98]
add esp, 4
cmp eax, ebp
je 0x40d7fd
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x94]
push edx
push ecx
push eax
call fcn.00406630
mov edx, dword [esp + 0xa4]
push edx
call fcn.00443d03
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.00443d03
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.004673e3
add esp, 0x518
ret 4