Function at 0x40aaa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b341
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5e0ffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
call fcn.00413455
mov ecx, eax
test ecx, ecx
jne 0x40aae8
push 0x80004005
call fcn.0040a390
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
call fcn.00413455
mov ecx, eax
test ecx, ecx
jne 0x40ab11
push 0x80004005
call fcn.0040a390
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
movq qword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.00414336
push 0xc
push str.launcher.dat
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040a170
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x50], xmm0
movq qword [ebp - 0x40], xmm0
call fcn.00414336
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov edi, dword [ebp - 0x34]
push 0x8000
push edi
call fcn.004146c5
or esi, 0xffffffff
test eax, eax
jne 0x40ab8c
mov byte [ebp - 0x91], al
jmp 0x40b750
push 4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.004147d6
cmp dword [ebp - 0x58], 0
mov dword [ebp - 0xac], 0
jle 0x40b3f7
nop
call fcn.00413455
mov ecx, eax
test ecx, ecx
je 0x40aade
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
mov eax, dword [0x5ec4a0]
xor edi, edi
mov esi, dword [0x5ec49c]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x98], eax
cmp esi, eax
je 0x40ad39
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x5c], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.0040bef0
mov byte [ebp - 4], 5
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [edi], ax
jne 0x40ac46
xor ecx, ecx
jmp 0x40ac5f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac50
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.0040bdf0
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x5c], 8
mov edi, dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
cmp edi, eax
cmovb eax, edi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40acb0
xor eax, eax
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40acd9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x60]
cmp eax, ecx
jbe 0x40acd2
mov dword [ebp - 0x18], 0xffffffff
jmp 0x40acd9
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40acc4
add edx, 2
add ecx, 2
sub dword [ebp - 0x18], 1
jmp 0x40ac8f
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40ac93
sbb eax, eax
neg eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
cmp eax, 8
jb 0x40acee
inc eax
push eax
push dword [ebp - 0x30]
call fcn.0040c230
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa8]
cmove eax, ecx
mov dword [ebp - 0x9c], eax
inc ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xa8], ecx
cmp eax, 8
jb 0x40ad24
inc eax
push eax
push dword [ebp - 0x70]
call fcn.0040c230
add esi, 0x18
cmp esi, dword [ebp - 0x98]
jne 0x40ac05
mov edi, dword [ebp - 0x9c]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
push 8
push str.LANG_DIR
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00409670
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
call fcn.0040d500
mov esi, eax
cmp esi, dword [0x5ec790]
je 0x40adaa
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x40ad8a
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push eax
call fcn.0040c030
shr eax, 0x1f
add esp, 8
test al, al
je 0x40add9
lea eax, [ebp - 0x30]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push ecx
push eax
push ecx
call fcn.0040d680
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xb0]
push eax
call fcn.0040d320
mov esi, dword [ebp - 0xb0]
mov esi, dword [esi + 0x28]
lea eax, [edi + edi*2]
shl eax, 3
add esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp word [eax], 0
jne 0x40adf4
xor edx, edx
jmp 0x40ae0f
mov edx, eax
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ae00
sub edx, edi
sar edx, 1
push edx
push eax
mov ecx, esi
call fcn.0040bdf0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40ae62
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x40ae59
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
mov eax, dword [ebp - 0x14]
mov esi, dword [0x5ec798]
add esi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, esi
je 0x40aed0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40aec2
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40aec2
push edx
call fcn.00409b80
add esp, 4
mov dword [ebp - 0x98], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40aeb8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x98]
add eax, 0x10
mov dword [0x5ec798], eax
jmp 0x40aed0
push dword [eax - 0xc]
mov ecx, 0x5ec798
push eax
call fcn.0040a170
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
push 0xa
push str.MAIN_TITLE
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00409670
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call fcn.0040d500
mov esi, eax
cmp esi, dword [0x5ec790]
je 0x40af41
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x40af21
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push eax
call fcn.0040c030
shr eax, 0x1f
add esp, 8
test al, al
je 0x40af70
lea eax, [ebp - 0x30]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push ecx
push eax
push ecx
call fcn.0040d680
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d320
mov esi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + 0x28]
mov edi, dword [ebp - 0x18]
add esi, edi
cmp word [eax], 0
jne 0x40af85
xor edx, edx
jmp 0x40afa2
mov edx, eax
lea edi, [edx + 2]
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40af90
sub edx, edi
mov edi, dword [ebp - 0x18]
sar edx, 1
push edx
push eax
mov ecx, esi
call fcn.0040bdf0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40aff5
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x40afec
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
push 8
push str.PLATFORM
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00409670
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 8
push eax
call fcn.0040d500
mov esi, eax
cmp esi, dword [0x5ec790]
je 0x40b066
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x40b046
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push eax
call fcn.0040c030
shr eax, 0x1f
add esp, 8
test al, al
je 0x40b095
lea eax, [ebp - 0x30]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push ecx
push eax
push ecx
call fcn.0040d680
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xb8]
push eax
call fcn.0040d320
mov esi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + 0x28]
add esi, edi
cmp word [eax], 0
jne 0x40b0a7
xor edx, edx
jmp 0x40b0c2
mov edx, eax
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40b0b0
sub edx, edi
mov edi, dword [ebp - 0x18]
sar edx, 1
push edx
push eax
mov ecx, esi
call fcn.0040bdf0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40b115
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x40b10c
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
push 5
push str.TITLE
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00409670
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 9
push eax
call fcn.0040d500
mov esi, eax
cmp esi, dword [0x5ec790]
je 0x40b186
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x40b166
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x30]
push eax
call fcn.0040c030
shr eax, 0x1f
add esp, 8
test al, al
je 0x40b1b5
lea eax, [ebp - 0x30]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push ecx
push eax
push ecx
call fcn.0040d680
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xbc]
push eax
call fcn.0040d320
mov esi, dword [ebp - 0xbc]
mov edx, dword [esi + 0x28]
mov esi, dword [ebp - 0x14]
add edx, edi
cmp word [esi], 0
jne 0x40b1c7
xor ecx, ecx
jmp 0x40b1df
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b1d0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0040bdf0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40b232
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x40b229
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
push 4
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.004147d6
xor edi, edi
cmp dword [ebp - 0x54], edi
jle 0x40b3c2
nop dword [eax + eax]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
inc edi
lea ecx, [ebp - 0x30]
mov edx, edi
mov dword [ebp - 0xa8], edi
call fcn.0040a4d0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.0040cc80
add esp, 4
mov edi, eax
push edi
mov byte [ebp - 4], 0xb
call fcn.0040d500
mov esi, eax
cmp esi, dword [0x5ec790]
je 0x40b2c1
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x40b2a0
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x40b2aa
mov ecx, dword [edi]
jmp 0x40b2ac
mov ecx, edi
push dword [edx]
mov edx, dword [edi + 0x10]
push eax
call fcn.0040c030
shr eax, 0x1f
add esp, 8
test al, al
je 0x40b2ed
push ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], edi
push eax
push ecx
call fcn.0040d680
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d320
mov esi, dword [ebp - 0xa0]
mov edx, dword [esi + 0x28]
mov esi, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
cmp word [esi], 0
jne 0x40b300
xor eax, eax
jmp 0x40b314
mov eax, esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b305
sub eax, edi
sar eax, 1
push eax
push esi
mov ecx, edx
call fcn.0040bdf0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40b367
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x1000
jb 0x40b35e
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x40b3b3
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x40b3aa
test cl, 0x1f
jne 0x40b40c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b40c
sub ecx, eax
cmp ecx, 4
jb 0x40b40c
cmp ecx, 0x23
ja 0x40b40c
mov ecx, eax
push ecx
call fcn.004130cb
add esp, 4
mov edi, dword [ebp - 0xa8]
cmp edi, dword [ebp - 0x54]
jl 0x40b250
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b3de
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xac]
inc esi
mov dword [ebp - 0xac], esi
cmp esi, dword [ebp - 0x58]
jl 0x40abb0
mov edi, dword [ebp - 0x34]
call fcn.00413455
mov ecx, eax
test ecx, ecx
jne 0x40b411
push 0x80004005
call fcn.0040a390
call fcn.0055e171
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x50]
call fcn.0040a9a0
mov esi, dword [ebp - 0x14]
push esi
call fcn.00566480
add esp, 4
mov dword [0x5ec3fc], eax
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x50]
push 4
push eax
call fcn.004147d6
mov eax, dword [ebp - 0x18]
mov dword [0x5ec3f8], eax
test eax, eax
jle 0x40b47a
mov edi, 0x5ec378
xor esi, esi
nop
push 4
push edi
lea ecx, [ebp - 0x50]
call fcn.004147d6
inc esi
add edi, 4
cmp esi, dword [ebp - 0x18]
jl 0x40b460
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x50]
call fcn.004147d6
cmp dword [ebp - 0x18], 0
jle 0x40b4af
mov edi, 0x5ec2f8
xor esi, esi
push 4
push edi
lea ecx, [ebp - 0x50]
call fcn.004147d6
inc esi
add edi, 4
cmp esi, dword [ebp - 0x18]
jl 0x40b495
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b4cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 8
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x50]
call fcn.004147d6
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push 0xe
push eax
mov eax, dword [ebp - 0x50]
call dword [eax + 0x38]
mov eax, dword [ebp - 0x1e]
sub dword [ebp - 0x18], eax
lea esi, [eax - 0xe]
push esi
call fcn.004130c2
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.004130c2
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
add esp, 8
mov dword [ebp - 0x9c], eax
push esi
push dword [ebp - 0x14]
call dword [edx + 0x38]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x9c]
call dword [eax + 0x38]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x9c]
push 4
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
push 0
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x9c]
call fcn.004130cb
push dword [ebp - 0x14]
call fcn.004130cb
mov eax, dword [ebp - 0xa4]
add esp, 8
push dword [ebp - 0xa0]
push 0
push 0x172
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x50]
call fcn.0041455d
lea ecx, [ebp - 0xa0]
call fcn.0040a6c0
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40b609
cmp dword [esi + 0xc], 0
jl 0x40b5fd
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40b5fd
push edx
call fcn.00409b80
add esp, 4
mov dword [ebp - 0xa4], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b5f5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xa4]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x40b609
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040a170
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0xa0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b62b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0x5bfad4
lea ecx, [ebp - 0x38]
call fcn.0040dd90
push str.config.dat
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040dcb0
add esp, 0xc
mov byte [ebp - 4], 0xe
lea esi, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40b6b1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b6a2
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40b6a2
push edx
call fcn.00409b80
add esp, 4
mov dword [ebp - 0xa4], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40b69a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xa4]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
jmp 0x40b6b1
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040a170
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0xa0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b6d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push edi
lea ecx, [ebp - 0x88]
call fcn.004146c5
test eax, eax
jne 0x40b72c
mov dword [0x5ec464], eax
mov dword [0x5ec468], 1
mov dword [0x5ec430], eax
mov dword [0x5ec45c], 0x500
mov dword [0x5ec460], 0x2d0
mov byte [0x5ec434], al
mov dword [0x5ec474], 1
mov dword [0x5ec46c], eax
mov dword [0x5ec470], eax
jmp 0x40b749
push 0x6c
push 0x5ec430
lea ecx, [ebp - 0x88]
call fcn.004147d6
lea ecx, [ebp - 0x88]
call fcn.0041455d
mov byte [ebp - 0x91], 1
lea ecx, [ebp - 0x50]
call fcn.0041436b
lea ecx, [ebp - 0x88]
call fcn.0041436b
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b781
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40b79d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x91]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055829c
mov esp, ebp
pop ebp
ret