Function at 0x40b580
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52c933
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0xa
xor edx, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov byte [esp + 0x98], 1
mov eax, dword [esi + 0x60]
cmp eax, ecx
je 0x40b621
mov ebx, dword [esi + 0x74]
cmp eax, ebx
je 0x40b621
mov edi, eax
mov eax, dword [eax + 0x24]
cmp eax, ebx
je 0x40b623
mov esi, eax
mov edi, esi
mov esi, dword [edi + 0x24]
cmp esi, ebx
jne 0x40b616
jmp 0x40b623
xor edi, edi
cmp edi, ecx
je 0x40b703
jmp 0x40b630
test edi, edi
mov ebx, edi
je 0x40b684
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x28]
mov ecx, dword [eax + 0x74]
cmp edx, ecx
je 0x40b66b
test edx, edx
je 0x40b661
mov eax, dword [edx + 0x24]
cmp eax, ecx
je 0x40b663
mov edi, edi
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40b650
mov eax, edx
mov dword [esp + 0x10], edx
jmp 0x40b68a
xor edx, edx
mov eax, edx
mov dword [esp + 0x10], edx
jmp 0x40b68a
mov eax, dword [edi + 0x2c]
cmp eax, ecx
je 0x40b684
cmp edi, dword [eax + 0x28]
jne 0x40b680
mov edi, eax
mov eax, dword [eax + 0x2c]
cmp eax, ecx
jne 0x40b672
cmp eax, ecx
jne 0x40b686
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
mov edi, eax
je 0x40b6cb
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x18]
add ebx, 4
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
call fcn.0040f4c0
test eax, eax
jne 0x40b6c1
lea ecx, [esp + 0x1c]
mov eax, ebx
push ecx
lea ebx, [esp + 0x50]
call fcn.0040f2d0
jmp 0x40b6cb
mov edx, dword [esp + 0x20]
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edx
cmp dword [esp + 0x10], 0
jne 0x40b630
mov eax, dword [esp + 0x4c]
test eax, eax
mov edx, dword [esp + 0x60]
je 0x40b6ff
cmp eax, edx
je 0x40b6ff
mov ecx, dword [eax + 0x24]
cmp ecx, edx
je 0x40b6f9
lea ecx, [ecx]
mov eax, ecx
mov ecx, dword [eax + 0x24]
cmp ecx, edx
jne 0x40b6f0
mov ecx, dword [esp + 0x48]
jmp 0x40b705
mov ecx, dword [esp + 0x48]
xor eax, eax
test eax, eax
mov esi, eax
je 0x40b974
nop
test esi, esi
mov edi, esi
je 0x40b764
mov ecx, dword [esi + 0x28]
cmp ecx, edx
je 0x40b743
test ecx, ecx
je 0x40b739
mov eax, dword [ecx + 0x24]
cmp eax, edx
je 0x40b73b
mov ecx, eax
mov eax, dword [ecx + 0x24]
cmp eax, edx
jne 0x40b728
mov eax, ecx
mov dword [esp + 0x14], ecx
jmp 0x40b76a
xor ecx, ecx
mov eax, ecx
mov dword [esp + 0x14], ecx
jmp 0x40b76a
mov eax, dword [esi + 0x2c]
cmp eax, edx
mov ecx, esi
je 0x40b764
lea esp, [esp]
cmp ecx, dword [eax + 0x28]
jne 0x40b760
mov ecx, eax
mov eax, dword [eax + 0x2c]
cmp eax, edx
jne 0x40b750
jmp 0x40b764
cmp eax, edx
jne 0x40b766
xor eax, eax
mov dword [esp + 0x14], eax
test edi, edi
mov esi, eax
mov dword [esp + 0x1c], esi
je 0x40b965
mov eax, dword [edi + 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
call fcn.0040a070
lea ebx, [esp + 0x80]
call fcn.0040e4f0
mov ebx, eax
add esp, 0x1c
mov dword [esp + 0x10], ebx
mov byte [esp + 0x98], 2
mov edi, dword [edi + 0x18]
lea edx, [esp + 0x34]
call fcn.0040eb80
test eax, eax
jne 0x40b7cb
lea edx, [esp + 0x34]
push edx
mov ecx, ebx
mov eax, edi
call fcn.0040e980
jmp 0x40b8f9
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx]
mov edi, dword [eax + 4]
lea esi, [eax + 4]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40b829
cmp dword [edi + 0xc], 0
jl 0x40b81a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40b81a
call fcn.004020b0
mov dword [esp + 0x18], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b80f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x40b829
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, esi
call fcn.004026c0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edi, dword [esi + 4]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40b883
cmp dword [edi + 0xc], 0
jl 0x40b873
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40b873
call fcn.004020b0
mov dword [esp + 0x18], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b867
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esi + 4], ecx
jmp 0x40b883
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esi + 4]
call fcn.004026c0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
mov edi, dword [esi + 8]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40b8dd
cmp dword [edi + 0xc], 0
jl 0x40b8cd
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40b8cd
call fcn.004020b0
mov dword [esp + 0x18], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b8c1
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esi + 8], ecx
jmp 0x40b8dd
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esi + 8]
call fcn.004026c0
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x18], edx
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x14], 0
jne 0x40b710
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x18], 0
je 0x40b99e
cmp esi, ecx
je 0x40b99e
mov eax, dword [esi + 0x24]
cmp eax, ecx
mov edx, esi
je 0x40b99a
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40b991
mov eax, edx
jmp 0x40b9a0
xor eax, eax
test eax, eax
mov dword [esp + 0x14], eax
je 0x40bade
mov edx, eax
mov edi, edi
test edx, edx
mov esi, edx
je 0x40b9f8
mov eax, dword [edx + 0x28]
cmp eax, ecx
je 0x40b9dd
test eax, eax
je 0x40b9f8
mov edx, eax
mov eax, dword [eax + 0x24]
cmp eax, ecx
je 0x40b9d9
lea ebx, [ebx]
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40b9d0
mov eax, edx
jmp 0x40b9fa
mov eax, dword [edx + 0x2c]
cmp eax, ecx
je 0x40b9f8
cmp edx, dword [eax + 0x28]
jne 0x40b9f4
mov edx, eax
mov eax, dword [eax + 0x2c]
cmp eax, ecx
jne 0x40b9e4
jmp 0x40b9f8
cmp eax, ecx
jne 0x40b9fa
xor eax, eax
test esi, esi
mov edx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
je 0x40bad2
cmp dword [esi + 0x1c], 0
je 0x40bad2
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
lea ebx, [esi + 4]
add ecx, 0x78
mov eax, edi
call fcn.0040e3b0
mov ebx, dword [esi + 8]
add edi, 1
push 0
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x5c]
push 0
add edi, 0x5c
push 0x1004
push ecx
call dword [0x531444]
push 0
push ebx
push edi
mov edx, eax
mov ecx, 1
call fcn.0040daf0
mov esi, dword [esi + 0x1c]
xor ecx, ecx
xor edx, edx
cmp esi, ecx
setne dl
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], ecx
add edx, 1
shl edx, 0xc
mov dword [esp + 0x70], edx
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [edi]
push 0x102b
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x84], 0xf000
call dword [0x531444]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40b9b0
mov esi, dword [esp + 0x34]
test esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
mov dword [esp + 0x18], eax
je 0x40bb0b
cmp esi, ecx
je 0x40bb0b
mov eax, dword [esi + 0x24]
cmp eax, ecx
mov edx, esi
je 0x40bb0d
lea esp, [esp]
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40bb00
jmp 0x40bb0d
xor edx, edx
test edx, edx
mov dword [esp + 0x10], edx
je 0x40bc4a
lea esp, [esp]
test edx, edx
mov esi, edx
je 0x40bb68
mov eax, dword [edx + 0x28]
cmp eax, ecx
je 0x40bb4d
test eax, eax
je 0x40bb68
mov edx, eax
mov eax, dword [eax + 0x24]
cmp eax, ecx
je 0x40bb49
lea ebx, [ebx]
mov edx, eax
mov eax, dword [edx + 0x24]
cmp eax, ecx
jne 0x40bb40
mov eax, edx
jmp 0x40bb6a
mov eax, dword [edx + 0x2c]
cmp eax, ecx
je 0x40bb68
cmp edx, dword [eax + 0x28]
jne 0x40bb64
mov edx, eax
mov eax, dword [eax + 0x2c]
cmp eax, ecx
jne 0x40bb54
jmp 0x40bb68
cmp eax, ecx
jne 0x40bb6a
xor eax, eax
test esi, esi
mov edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
je 0x40bc42
cmp dword [esi + 0x1c], 0
jne 0x40bc42
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
lea ebx, [esi + 4]
add ecx, 0x78
mov eax, edi
call fcn.0040e3b0
mov ebx, dword [esi + 8]
add edi, 1
push 0
mov dword [esp + 0x1c], edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x5c]
push 0
add edi, 0x5c
push 0x1004
push ecx
call dword [0x531444]
push 0
push ebx
push edi
mov edx, eax
mov ecx, 1
call fcn.0040daf0
mov esi, dword [esi + 0x1c]
xor ecx, ecx
xor edx, edx
cmp esi, ecx
setne dl
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], ecx
add edx, 1
shl edx, 0xc
mov dword [esp + 0x70], edx
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [edi]
push 0x102b
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x84], 0xf000
call dword [0x531444]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x40bb20
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x64], 0
mov esi, dword [0x5313fc]
push 0x3ee
mov edi, ecx
jne 0x40bd79
mov edx, dword [edi + 8]
push edx
call esi
push 0x535ae0
push eax
call dword [0x53142c]
mov eax, dword [edi + 8]
push 0x431
push eax
call esi
mov ebx, dword [0x53143c]
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x434
push ecx
call esi
push 0
push eax
call ebx
mov edx, dword [edi + 8]
push 0x432
push edx
call esi
mov ebx, dword [0x531508]
push 1
push 0
push 0
push 0x5b
push 0x1d
push 0
push eax
call ebx
mov eax, dword [edi + 8]
push 0x41a
push eax
call esi
push 0
push 0x14
push 0xa2
push 0x6f
push 0x1d
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x429
push ecx
call esi
push 0
push 0x79
push 0xa2
push 0x8a
push 0x1d
push 0
push eax
call ebx
mov edx, dword [edi + 8]
push 0x42a
push edx
call esi
push 0
push 0x16
push 0x4b
push 0xa7
push 0xd2
push 0
push eax
call ebx
mov eax, dword [edi + 8]
push 0x3ea
push eax
call esi
push 0
push 0x16
push 0x4b
push 0xc7
push 0xd2
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x433
push ecx
call esi
push 1
push 0
push 0
push 0x5b
push 0x12f
push 0
push eax
call ebx
mov edx, dword [edi + 8]
push 0x42b
push edx
call esi
push 0
push 0x93
push 0xa1
push 0x6f
push 0x12f
jmp 0x40bea0
mov eax, dword [edi + 8]
push eax
call esi
push 0x535afc
push eax
call dword [0x53142c]
mov ecx, dword [edi + 8]
push 0x431
push ecx
call esi
mov ebx, dword [0x53143c]
push 1
push eax
call ebx
mov edx, dword [edi + 8]
push 0x434
push edx
call esi
push 1
push eax
call ebx
mov eax, dword [edi + 8]
push 0x41a
push eax
call esi
mov ebx, dword [0x531508]
push 0
push 0x14
push 0x64
push 0x6f
push 0xc
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x429
push ecx
call esi
push 0
push 0x79
push 0x64
push 0x8a
push 0xc
push 0
push eax
call ebx
mov edx, dword [edi + 8]
push 0x42a
push edx
call esi
push 0
push 0x16
push 0x4b
push 0xa7
push 0x76
push 0
push eax
call ebx
mov eax, dword [edi + 8]
push 0x3ea
push eax
call esi
push 0
push 0x16
push 0x4b
push 0xc7
push 0x76
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x433
push ecx
call esi
push 1
push 0
push 0
push 0x5b
push 0xc7
push 0
push eax
call ebx
mov edx, dword [edi + 8]
push 0x42b
push edx
call esi
push 0
push 0x93
push 0x7a
push 0x6f
push 0xc7
push 0
push eax
call ebx
mov eax, dword [edi + 8]
push 0x434
push eax
call esi
push 1
push 0
push 0
push 0x5b
push 0x14d
push 0
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x431
push ecx
call esi
push 0
push 0x93
push 0x98
push 0x6f
push 0x14d
push 0
push eax
call ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x24]
lea edi, [ebx + 0x38]
push edx
push eax
call dword [0x53141c]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0x535b24
push 0
sub ecx, 0x17
push edi
xor edx, edx
call fcn.0040d730
mov edx, dword [ebx + 0x3c]
lea ecx, [esp + 0x24]
lea edi, [ebx + 0x3c]
push ecx
push edx
call dword [0x53141c]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0x535b24
push 0
sub ecx, 0x17
push edi
xor edx, edx
call fcn.0040d730
mov ecx, dword [ebx + 0x5c]
lea eax, [esp + 0x24]
lea edi, [ebx + 0x5c]
push eax
push ecx
call dword [0x53141c]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
push 0x535b2c
push 0
sub ecx, 0xa
push edi
xor edx, edx
call fcn.0040d730
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x98], 3
call fcn.0040d130
add eax, dword [ebx + 0x48]
lea edi, [esp + 0x18]
push eax
push 0x53572c
call fcn.00401f20
mov ecx, dword [ebx + 8]
add esp, 8
push 0x42c
push ecx
call esi
mov edi, dword [esp + 0x18]
push edi
push eax
call dword [0x53142c]
call fcn.0040d130
add eax, dword [ebx + 0x48]
cmp eax, 0x2800
jbe 0x40bfa1
mov edx, ebx
mov eax, dword [edx + 8]
push 0x42d
push eax
call esi
push 1
push eax
call dword [0x53143c]
lea eax, [edi - 0x10]
mov byte [esp + 0x98], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x34]
call fcn.0040ffa0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40bfdf
push eax
call fcn.004ff948
add esp, 4
lea edi, [esp + 0x4c]
call fcn.00410530
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40bff9
push eax
call fcn.004ff948
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4