Function at 0x404fc0
Capabilities:
Get file size
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x446f98
mov eax, dword fs:[0]
push eax
sub esp, 0xc5c
mov eax, dword [0x45b8f8]
xor eax, esp
mov dword [esp + 0xc58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b8f8]
xor eax, esp
push eax
lea eax, [esp + 0xc70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
add ebx, 0x140
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ebx
mov edi, dword [ebx]
cmp edi, dword [ebx + 4]
jbe 0x40501f
call fcn.0042cf2e
lea esi, [ebx - 4]
mov ebp, edi
mov edi, dword [ebx + 4]
cmp dword [ebx], edi
mov dword [esp + 0x58], ebp
ja 0x405033
cmp edi, edi
jbe 0x405038
call fcn.0042cf2e
test esi, esi
je 0x405040
cmp esi, esi
je 0x405045
call fcn.0042cf2e
cmp ebp, edi
je 0x405462
test esi, esi
jne 0x405056
call fcn.0042cf2e
cmp ebp, dword [esi + 8]
jb 0x405060
call fcn.0042cf2e
mov esi, dword [ebp]
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xc78], 0
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
add esi, 0x14
mov byte [esp + 0xc78], 1
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x48], esi
jbe 0x4050d2
call fcn.0042cf2e
mov dword [esp + 0x3c], edi
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x4050e3
call fcn.0042cf2e
test esi, esi
je 0x4050eb
cmp esi, esi
je 0x4050f0
call fcn.0042cf2e
cmp edi, ebx
je 0x4053f2
test esi, esi
jne 0x405101
call fcn.0042cf2e
cmp edi, dword [esi + 8]
jb 0x40510b
call fcn.0042cf2e
mov ecx, dword [edi]
mov dword [esp + 0x34], ecx
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xc78], 2
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x104
lea ecx, [esp + 0x268]
push ecx
push 0
mov byte [esp + 0xc84], 3
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.0042c1d2
lea eax, [esp + 0x78]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051a3
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x62], cx
lea eax, [esp + 0x5c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401e20
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051e5
mov esi, dword [esp + 0x24]
mov ebx, dword [esi - 0xc]
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x64]
mov ebp, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
lea edi, [ebx + eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebp, esi
sub eax, edi
sar ebp, 1
or eax, ecx
jge 0x40522f
push edi
lea ecx, [esp + 0x28]
call fcn.00401c00
mov esi, dword [esp + 0x24]
cmp ebp, ebx
ja 0x40523a
lea edx, [esi + ebp*2]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0042c32e
add esp, 0x10
test edi, edi
jl 0x405532
cmp edi, dword [esi - 8]
jg 0x405532
mov ebx, dword [esp + 0x34]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov eax, dword [ebx + 8]
push eax
push esi
lea ecx, [esp + 0x1c]
push str._szip_s
push ecx
call fcn.0040a870
add esp, 0x10
push 0x44f180
push 0x44f184
lea edx, [esp + 0x1c]
push edx
call fcn.004076a0
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40537e
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x18c]
add edi, 0x188
test eax, eax
jne 0x4052ef
xor edx, edx
jmp 0x4052f7
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x405314
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405314
mov eax, dword [edi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [edi + 8], eax
jmp 0x40537e
mov ecx, dword [edi + 8]
cmp eax, ecx
mov dword [esp + 0x30], ecx
jbe 0x405324
call fcn.0042cf2e
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x405337
mov eax, dword [edi + 8]
mov edx, eax
sub edx, ebp
sar edx, 2
jne 0x40533b
xor ebx, ebx
jmp 0x40534d
cmp ebp, eax
jbe 0x405344
call fcn.0042cf2e
mov ebx, dword [esp + 0x30]
sub ebx, ebp
sar ebx, 2
mov eax, dword [esp + 0x30]
push eax
push edi
lea eax, [esp + 0x3c]
mov ecx, edi
call fcn.00408140
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
jbe 0x40536b
call fcn.0042cf2e
lea eax, [ebp + ebx*4]
cmp eax, dword [edi + 8]
ja 0x405379
cmp eax, dword [edi + 4]
jae 0x40537e
call fcn.0042cf2e
add esi, 0xfffffff0
mov byte [esp + 0xc78], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053a2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0xc78], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 8]
jb 0x4053dc
call fcn.0042cf2e
add dword [esp + 0x3c], 4
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
jmp 0x4050d6
mov byte [esp + 0xc78], 0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40541a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc78], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
add esi, 0xfffffffc
cmp ebp, dword [esi + 8]
jb 0x405456
call fcn.0042cf2e
mov ebx, dword [esp + 0x28]
add ebp, 4
jmp 0x405024
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 1
add ebx, 0x10
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
jl 0x405013
xor ebp, ebp
push 0x7fe
lea ecx, [esp + 0x472]
push ebp
push ecx
mov word [esp + 0x478], bp
call fcn.0042e370
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push str..custom.ini
push 0x400
lea edx, [esp + 0x474]
push edx
push 0x450044
push 0x44fbd4
push str.thirdtrade
call esi
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x30]
call fcn.00402f20
mov dword [esp + 0xc78], 4
call fcn.0040c808
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40553c
push 0x80004005
call fcn.00401bb0
push 0x80070057
call fcn.00401bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xc78], 5
mov eax, dword [esp + 0x2c]
mov ecx, 0x450044
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405586
cmp dx, bp
je 0x405582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405586
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x405560
xor eax, eax
jmp 0x40558b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
setne al
test al, al
je 0x4058e9
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x18c]
add ecx, 0x188
cmp eax, ebp
je 0x405aa7
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 2
je 0x405aa7
mov edi, eax
cmp edi, dword [ecx + 8]
jbe 0x4055ca
call fcn.0042cf2e
mov dword [esp + 0x3c], edi
mov edi, edi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x190]
add esi, 0x188
cmp dword [esi + 4], ebx
jbe 0x4055ea
call fcn.0042cf2e
test esi, esi
je 0x4055f2
cmp esi, esi
je 0x4055f7
call fcn.0042cf2e
cmp edi, ebx
je 0x405aa7
test esi, esi
jne 0x405608
call fcn.0042cf2e
cmp edi, dword [esi + 8]
jb 0x405612
call fcn.0042cf2e
mov eax, dword [edi]
mov dword [esp + 0x34], eax
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xc78], 6
call fcn.0040c808
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405528
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x268]
push ecx
push 0
mov byte [esp + 0xc84], 7
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.0042c1d2
lea eax, [esp + 0x78]
add esp, 0x14
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4056b0
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x62], cx
lea eax, [esp + 0x5c]
lea edx, [eax + 2]
jmp 0x4056d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4056d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401e20
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4056f5
mov esi, dword [esp + 0x14]
mov ebx, dword [esi - 0xc]
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x64]
mov ebp, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
lea edi, [ebx + eax]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub ebp, esi
sub eax, edi
sar ebp, 1
or eax, ecx
jge 0x40573f
push edi
lea ecx, [esp + 0x18]
call fcn.00401c00
mov esi, dword [esp + 0x14]
cmp ebp, ebx
ja 0x40574a
lea edx, [esi + ebp*2]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, eax
push eax
push ecx
push eax
lea edx, [esi + ebx*2]
push edx
call fcn.0042c32e
add esp, 0x10
test edi, edi
jl 0x405532
cmp edi, dword [esi - 8]
jg 0x405532
mov ebx, dword [esp + 0x34]
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
mov eax, dword [ebx + 8]
push eax
push esi
lea ecx, [esp + 0x30]
push str._szip_s
push ecx
call fcn.0040a870
add esp, 0x10
push 0x44f180
push 0x44f184
lea edx, [esp + 0x30]
push edx
call fcn.004076a0
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x405528
mov ebp, dword [esp + 0x28]
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057eb
test dx, dx
je 0x4057e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057eb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4057c5
xor eax, eax
jmp 0x4057f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x405866
add esi, 0xfffffff0
mov byte [esp + 0xc78], 6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40581d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xc78], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
add eax, 0x188
cmp ecx, dword [eax + 8]
jb 0x405858
call fcn.0042cf2e
add dword [esp + 0x3c], 4
mov edi, dword [esp + 0x3c]
jmp 0x4055d0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push str.applistTop
mov ecx, edi
call fcn.00415423
mov ecx, ebx
call fcn.004045e0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xe4]
push ecx
call eax
add esi, 0xfffffff0
mov dword [edi + 0x198], ebx
mov byte [esp + 0xc78], 6
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058bc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0xc78], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405b2c
push str..custom.ini
push 0x400
lea ecx, [esp + 0x474]
push ecx
push 0x450044
push 0x44fbf4
push str.thirdtrade
call esi
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405916
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x470]
push edx
lea ecx, [esp + 0x34]
call fcn.00401e20
mov eax, dword [esp + 0x2c]
mov ecx, 0x450044
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405966
cmp dx, bp
je 0x405962
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405966
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x405940
xor eax, eax
jmp 0x40596b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
setne al
test al, al
je 0x405aa7
push str..custom.ini
push 0x400
lea eax, [esp + 0x474]
push eax
push 0x450044
push str.name
push str.thirdtrade
call esi
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4059a5
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x470]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401e20
push 0x1c
call fcn.0040afe6
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov dword [esi + 0x18], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 4
push ecx
push eax
mov dword [esp + 0x20], esi
call edi
cmp eax, ebp
jne 0x4059f7
jmp fcn.00401b60
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call edi
cmp eax, ebp
jne 0x405a0e
jmp fcn.00401b60
mov ebx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov dword [esi + 0x10], ebp
lea edi, [ebx + 0x188]
mov dword [esi + 0x14], ebp
mov eax, dword [edi + 4]
cmp eax, ebp
jne 0x405a2c
xor edx, edx
jmp 0x405a34
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
cmp eax, ebp
je 0x405a51
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405a51
mov eax, dword [edi + 8]
mov dword [eax], esi
add eax, 4
mov dword [edi + 8], eax
jmp 0x405a74
mov ebx, dword [edi + 8]
cmp eax, ebx
jbe 0x405a5d
call fcn.0042cf2e
push ebx
push edi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x60]
push eax
mov eax, edi
call fcn.00407ee0
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push str.applistTop
mov ecx, ebx
call fcn.00415423
mov ecx, esi
call fcn.004045e0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xe4]
push ecx
call eax
mov dword [ebx + 0x198], esi
jmp 0x405b2c
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x18c]
test eax, eax
je 0x405b2c
mov ecx, dword [edi + 0x190]
sub ecx, eax
sar ecx, 2
je 0x405b2c
test eax, eax
je 0x405ad7
mov edx, dword [edi + 0x190]
sub edx, eax
sar edx, 2
jne 0x405adc
call fcn.0042cf2e
mov eax, dword [edi + 0x18c]
mov esi, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push str.applistTop
mov ecx, edi
call fcn.00415423
test esi, esi
je 0x405b12
mov ecx, esi
call fcn.004045e0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xe4]
push ecx
call eax
jmp 0x405b26
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push 0x450044
push eax
call edx
mov dword [edi + 0x198], esi
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push str.applist
mov ecx, ebp
call fcn.00415423
mov esi, dword [ebp + 0x18c]
cmp esi, dword [ebp + 0x190]
lea edi, [ebp + 0x188]
jbe 0x405b60
call fcn.0042cf2e
lea ebx, [ebx]
mov ebx, dword [ebp + 0x190]
cmp dword [ebp + 0x18c], ebx
jbe 0x405b73
call fcn.0042cf2e
test edi, edi
je 0x405b81
lea eax, [ebp + 0x188]
cmp edi, eax
je 0x405b86
call fcn.0042cf2e
cmp esi, ebx
je 0x405be9
test edi, edi
jne 0x405b93
call fcn.0042cf2e
cmp esi, dword [edi + 8]
jb 0x405b9d
call fcn.0042cf2e
mov ecx, dword [esi]
call fcn.00404400
cmp dword [ebp + 0x19c], 0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
push eax
jne 0x405bc4
mov eax, dword [edx + 0x104]
push str.beforeEnd
push ecx
call eax
jmp 0x405bcd
mov eax, dword [edx + 0xe4]
push ecx
call eax
mov dword [ebp + 0x19c], 0
cmp esi, dword [edi + 8]
jb 0x405be1
call fcn.0042cf2e
add esi, 4
jmp 0x405b60
cmp dword [ebp + 0x19c], 0
je 0x405c06
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
push str._p_style_font_family:
push eax
call edx
mov byte [esp + 0xc78], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc78], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc58]
xor ecx, esp
call fcn.0042bfb5
add esp, 0xc68
ret