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

Disassembly:
push 0xffffffffffffffff
push 0x5e8b92
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x88]
mov edi, dword [ebx + 0x60]
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.005a7a10
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
cmp eax, 2
je 0x5a4171
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
test eax, eax
je 0x5a4171
xor eax, eax
jmp 0x5a4176
mov eax, 1
xor ecx, ecx
test eax, eax
sete cl
cmp dword [esp + 0x34], 5
mov ebp, ecx
mov dword [esp + 0x14], ebp
jne 0x5a4197
xor edx, edx
test ebp, ebp
sete dl
mov ebp, edx
mov dword [esp + 0x14], edx
lea eax, [esp + 0x88]
push eax
mov ecx, ebx
call fcn.005a76a0
cmp dword [esi + 0x28], 0
mov dword [esp + 0x7c], 0
je 0x5a41d6
mov ecx, dword [ebx + 0x60]
cmp dword [ecx + 4], ebx
jne 0x5a41d6
cmp dword [edi + 0x1c], 0
je 0x5a41d6
test ebp, ebp
je 0x5a41ce
lea eax, [esi + 0x128]
jmp 0x5a41e6
lea eax, [esi + 0x118]
jmp 0x5a41e6
lea eax, [esi + 0x120]
test ebp, ebp
jne 0x5a41e6
lea eax, [esi + 0x110]
mov ebp, dword [esp + 0x84]
push eax
push ebp
lea ecx, [esp + 0x6c]
mov dword [esp + 0x30], eax
call fcn.0055cc20
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x88]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov dword [esp + 0x48], eax
push ebx
sub esp, 8
mov eax, esp
mov dword [esp + 0x50], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
mov dword [esp + 0x44], esp
push ebp
mov ecx, edi
mov byte [esp + 0x94], 1
call eax
cmp dword [esp + 0x34], 3
mov dword [esp + 0x30], eax
jne 0x5a4257
mov ecx, dword [ebx + 0x60]
cmp dword [ecx + 4], ebx
je 0x5a4257
xor eax, eax
jmp 0x5a425c
mov eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x5a42dd
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x5a42dd
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jle 0x5a42dd
test ebp, ebp
jl 0x5a431d
cmp ebp, dword [ebx + 0x74]
jge 0x5a431d
mov edx, dword [ebx + 0x70]
mov ecx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
mov eax, dword [ecx + 8]
cmp eax, 2
je 0x5a42ac
cmp eax, 1
jne 0x5a42cb
mov eax, dword [ebx + 0x60]
cmp dword [eax + 4], ebx
jne 0x5a42cb
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x44]
push eax
call edx
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x48]
jne 0x5a42c7
mov eax, dword [esp + 0x44]
add dword [esp + 0x18], eax
inc ebp
cmp ebp, dword [ebx + 0x74]
jl 0x5a427d
cmp dword [esp + 0x18], 0
jle 0x5a42dd
add dword [esp + 0x18], 3
cmp dword [esp + 0x9c], 0
je 0x5a4a3d
cmp dword [esp + 0x18], 0
jle 0x5a448b
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 8]
push ebx
push edx
call eax
cmp dword [esp + 0x14], 0
je 0x5a4322
sub dword [esp + 0x98], 3
jmp 0x5a432a
call fcn.005df2b2
sub dword [esp + 0x94], 3
mov ecx, dword [ebx + 0x74]
add ecx, 0xffffffff
mov dword [esp + 0x9c], ecx
js 0x5a448b
lea ecx, [ecx]
test ecx, ecx
jl 0x5a431d
cmp ecx, dword [ebx + 0x74]
jge 0x5a431d
mov eax, dword [ebx + 0x70]
lea edx, [ecx*4]
mov ebp, dword [eax + edx]
add eax, edx
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x5a4375
cmp eax, 1
jne 0x5a447b
mov edx, dword [ebx + 0x60]
cmp dword [edx + 4], ebx
jne 0x5a447b
mov eax, dword [ebp]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call edx
sub esp, 0x10
cmp dword [esp + 0x24], 0
jne 0x5a43ed
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x2c]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
lea edx, [ecx + eax]
sub ecx, edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x44], edx
add ecx, eax
mov eax, esp
mov edx, edi
sub edx, dword [esp + 0x28]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, ebp
call fcn.005a77f0
mov edx, dword [esp + 0x18]
sub dword [esp + 0x94], edx
jmp 0x5a4448
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0x28]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov edx, ecx
sub edx, eax
add edx, edi
mov edi, dword [esp + 0xa8]
sub edi, dword [esp + 0x2c]
sub ecx, eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0xa8]
mov ecx, ebp
mov dword [eax + 0xc], edx
call fcn.005a77f0
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x98], eax
mov eax, dword [esp + 0x9c]
cmp eax, dword [ebx + 0x74]
jge 0x5a431d
mov ecx, dword [ebx + 0x70]
mov edx, dword [esp + 0x84]
add eax, eax
add eax, eax
add ecx, eax
mov ecx, dword [ecx]
push edx
call fcn.005a7fb0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x9c]
sub ecx, 1
mov dword [esp + 0x9c], ecx
jns 0x5a4340
mov ecx, dword [esi + 0xe8]
mov eax, dword [ecx]
mov edx, dword [esp + 0x84]
mov eax, dword [eax + 8]
push ebx
push edx
call eax
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x24]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], ecx
je 0x5a4739
test eax, eax
jle 0x5a44fa
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 0x70]
add eax, dword [esi + 0x60]
mov ecx, edi
add dword [esp + 0x90], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
call eax
cmp eax, 3
jne 0x5a451d
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x6c]
jmp 0x5a4523
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x64]
add dword [esp + 0x8c], ecx
sub dword [esp + 0x94], eax
cmp dword [esp + 0x30], 0
je 0x5a45b3
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
lea eax, [ebp - 1]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0x98]
sar ecx, 1
sar eax, 1
sub edx, ebp
sub ecx, eax
cmp edx, dword [esp + 0x40]
jle 0x5a45a4
mov eax, dword [edi]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0xa0]
push 1
push ebx
push edx
mov edx, dword [eax + 0x48]
push ecx
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, edi
call edx
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0x40]
lea ecx, [eax + ebp + 2]
mov dword [esp + 0x90], ecx
cmp dword [esp + 0x2c], 0
je 0x5a49d3
mov edx, dword [esp + 0x90]
add edx, 8
cmp dword [esp + 0x98], edx
jle 0x5a49d3
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x8c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
push eax
lea ecx, [esp + 0x90]
call dword [sym.imp.mfc90u.dll_]
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 8]
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [edi]
mov ebp, dword [esp + 0x94]
mov edx, dword [eax + 0x4c]
sub ebp, dword [esp + 0x8c]
mov ecx, edi
call edx
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, dword [esi + 0x78]
mov eax, ebp
mov ebp, dword [esp + 0x94]
add edi, 0xfffffffc
sub eax, ecx
sub eax, dword [esp + 0x48]
xor ecx, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x98]
sar eax, 1
sub ebp, eax
mov eax, ebp
sub eax, dword [esp + 0x90]
mov dword [esp + 0x8c], ebp
add eax, edx
test edi, edi
setl cl
mov dword [esp + 0x94], eax
dec ecx
and ecx, edi
mov edi, dword [esi + 0x68]
add edi, ecx
sub edx, edi
cmp dword [esi + 0x98], 0
mov dword [esp + 0x98], edx
jne 0x5a46a0
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.005a2a90
mov eax, dword [esp + 0x94]
mov ebp, dword [esp + 0x8c]
cmp dword [esi + 0x90], 0
je 0x5a46e8
mov edx, dword [esp + 0x90]
push 0x920
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebp
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x98]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xac]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x9c]
push ecx
push edx
mov ecx, esi
call fcn.005a3320
jmp 0x5a49d3
mov eax, dword [esi + 0x94]
mov edi, dword [esp + 0x84]
mov ebp, dword [edi]
neg eax
sbb eax, eax
and eax, 0x8000
or eax, 0x920
push eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x90]
add ebp, 0x70
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
push eax
lea ecx, [esp + 0x94]
call dword [sym.imp.mfc90u.dll_]
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
jmp 0x5a49d3
test eax, eax
jle 0x5a4755
cdq
sub eax, edx
sar eax, 1
push 0
neg eax
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 0x70]
add ecx, dword [esi + 0x60]
add dword [esp + 0x8c], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
cmp eax, 2
jne 0x5a4778
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x6c]
jmp 0x5a477e
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x64]
mov ebp, dword [esp + 0x30]
add dword [esp + 0x90], ecx
sub dword [esp + 0x98], eax
test ebp, ebp
je 0x5a480b
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x40]
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x8c]
lea edx, [eax - 1]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x94]
sub edx, eax
cmp edx, dword [esp + 0x3c]
jle 0x5a47fa
mov eax, dword [edi]
mov eax, dword [eax + 0x48]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x88]
push 1
push ebx
push ecx
mov ecx, dword [esp + 0x54]
push ecx
push edx
mov ecx, edi
call eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x3c]
lea ecx, [eax + ecx + 2]
mov dword [esp + 0x8c], ecx
jmp 0x5a4812
mov ecx, dword [esp + 0x8c]
cmp dword [esp + 0x2c], 0
je 0x5a49d3
mov edx, dword [esp + 0x94]
cmp edx, ecx
jle 0x5a49d3
neg ebp
sbb ebp, ebp
and ebp, 2
sub ebp, dword [esi + 0x78]
sub ebp, dword [esi + 0x68]
add edx, ebp
cmp dword [ebx + 0x80], 0
mov dword [esp + 0x94], edx
je 0x5a490f
mov ebp, dword [esp + 0x84]
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x60]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5a486e
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
push ecx
mov ecx, edi
call edx
push eax
call fcn.00582320
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa4]
add esp, 0xc
test byte [esi + 0x9c], 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
je 0x5a48f2
mov eax, dword [ebx + 0x80]
push closesocket
push closesocket
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00582390
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
sub eax, ecx
add eax, dword [esp + 0x2c]
add esp, 0x10
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 0x80]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.00582440
add esp, 0xc
jmp 0x5a49d3
cmp dword [esi + 0x90], 0
je 0x5a4968
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
and eax, 0x800
or eax, dword [esi + 0x9c]
or eax, 0x20
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + 8], edx
mov edx, dword [esp + 0xac]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call fcn.005a3320
jmp 0x5a49d3
cmp dword [esi + 0xa0], 0
je 0x5a4989
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.005a2a90
cmp dword [esi + 0xa0], 0
jne 0x5a4996
cmp dword [esi + 0x98], 0
jne 0x5a4996
xor eax, eax
jmp 0x5a499b
mov eax, 0x800
mov ecx, dword [esi + 0x94]
neg ecx
sbb ecx, ecx
and ecx, 0x8000
or ecx, dword [esi + 0x9c]
lea edx, [esp + 0x8c]
or ecx, eax
or ecx, 0x20
push ecx
mov ecx, dword [esp + 0x88]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.0051d170
mov ecx, dword [ebx + 0x60]
cmp dword [ecx + 4], ebx
jne 0x5a4a1b
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
call eax
test eax, eax
je 0x5a4a1b
mov ecx, dword [esp + 0x54]
mov edx, dword [esi]
mov edx, dword [edx + 0x74]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x94]
push ebx
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 0
call fcn.0055cc60
lea ecx, [esp + 0x88]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
jmp 0x5a4d20
mov eax, dword [esp + 0x34]
cmp eax, 2
jne 0x5a4a5f
mov eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
push eax
push ecx
jmp 0x5a4cf9
cmp eax, 3
jne 0x5a4c10
cmp dword [esp + 0x2c], 0
jne 0x5a4a95
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x40]
jne 0x5a4a7e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
push ecx
push edx
add eax, 8
push eax
jmp 0x5a4cfa
cmp dword [esi + 0x28], 0
je 0x5a4aaf
cmp dword [edi + 0x1c], 0
je 0x5a4aaf
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.005a2900
jmp 0x5a4ac2
cmp dword [esp + 0x14], 0
lea eax, [esi + 0x120]
jne 0x5a4ac2
lea eax, [esi + 0x110]
mov ecx, dword [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0055cc20
mov eax, dword [edi + 0x5c]
xor edx, edx
cmp eax, edx
mov byte [esp + 0x7c], 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x9c], edx
jle 0x5a4bbb
jmp 0x5a4afa
mov edx, dword [esp + 0x9c]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
jl 0x5a4b2a
cmp edx, eax
jge 0x5a4b2a
mov eax, dword [esp + 0x38]
cmp edx, dword [eax + 0x5c]
jge 0x5a431d
mov eax, dword [eax + 0x58]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x2c]
push edx
call fcn.005a76a0
mov ebp, eax
mov eax, dword [esi + 0x98]
mov ebx, dword [esp + 0x84]
mov edi, dword [ebx]
neg eax
sbb eax, eax
and eax, 0x800
or eax, 0x520
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
mov byte [esp + 0x84], 3
add edi, 0x70
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
push eax
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_]
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
cmp dword [esp + 0x34], eax
jg 0x5a4b9d
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x5c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x9c], ecx
jl 0x5a4af3
cmp dword [esp + 0x30], 0
jne 0x5a4bc6
xor eax, eax
jmp 0x5a4bd5
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x40]
jne 0x5a4bd5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esi + 0xd4]
push ecx
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0x70]
push edx
add ecx, dword [esp + 0x3c]
add ecx, eax
add ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.005a2a60
lea ecx, [esp + 0x44]
mov esi, eax
mov byte [esp + 0x7c], 1
call fcn.0055cc60
jmp 0x5a4d03
cmp dword [ebx + 0x80], 0
je 0x5a4c72
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 8]
mov edi, dword [ebx + 0x60]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5a4c38
mov ecx, dword [ecx + 4]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x60]
push ecx
mov ecx, edi
call eax
push eax
call fcn.00582320
mov ebx, dword [ebx + 0x80]
push closesocket
push closesocket
lea ecx, [esp + 0x58]
push ebx
push ecx
call fcn.00582390
mov edx, dword [eax + 4]
mov ecx, dword [eax]
add esp, 0x1c
mov dword [esp + 0x48], edx
jmp 0x5a4cc3
mov eax, dword [esi + 0x98]
neg eax
sbb eax, eax
and eax, 0x800
or eax, 0x520
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x90]
push edx
call fcn.0051d170
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x30], 0
jne 0x5a4cce
xor eax, eax
jmp 0x5a4cdd
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x40]
jne 0x5a4cdd
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0xd8]
push edx
mov edx, dword [esi + 0xd4]
push edx
mov edx, dword [esi + 0x78]
add edx, dword [esi + 0x70]
add edx, ecx
add edx, eax
add edx, dword [esp + 0x20]
push edx
mov ecx, esi
call fcn.005a2a60
mov esi, eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 0
call fcn.0055cc60
lea ecx, [esp + 0x88]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x1c