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

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
push edi
lea eax, [ebx + 0x14]
sub esp, 0x10
mov ebp, ecx
mov esi, dword [eax]
mov edx, esp
lea ecx, [ebx + 4]
sub esp, 0x10
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [esp + 0x50], ebp
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x68]
push edx
mov ecx, ebx
call fcn.1005f840
mov eax, dword [ebp + 0x15c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc0]
xor edi, edi
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
jbe 0x1005d793
lea eax, [ebp + 0x98]
push ecx
lea ecx, [esp + 0xc4]
mov edx, dword [eax]
mov dword [esp + 0xc4], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xc8], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xcc], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0xd0], eax
call fcn.100607c0
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
cmp dword [eax + 0x18], edi
je 0x1005d77e
mov eax, dword [eax + 4]
lea ecx, [ebp + 0xf4]
push eax
call fcn.100611b0
mov esi, eax
cmp esi, edi
je 0x1005d77e
mov eax, dword [esi + 8]
cmp eax, 0x800
jb 0x1005d159
mov ecx, dword [ebp + 0x30]
lea edx, [eax - 0x800]
cmp edx, ecx
jae 0x1005d159
lea ecx, [ebp + 8]
add eax, 0xfffff800
push eax
mov edx, dword [ecx]
mov dword [esp + 0x164], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x168], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x16c], edx
lea edx, [esp + 0x1d4]
mov ecx, dword [ecx + 0xc]
push edx
mov dword [esp + 0x174], ecx
lea ecx, [esp + 0x168]
call fcn.1005f0b0
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x1005d15d
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0xc]
cmp eax, 0x1000
jb 0x1005d1bf
mov edx, dword [ebp + 0x60]
lea ecx, [eax - 0x1000]
cmp ecx, edx
jae 0x1005d1bf
lea edx, [ebp + 0x38]
add eax, 0xfffff000
push eax
lea eax, [esp + 0x1b4]
mov ecx, dword [edx]
push eax
mov dword [esp + 0x148], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x14c], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x150], ecx
lea ecx, [esp + 0x148]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x154], edx
call fcn.1005f0b0
mov eax, dword [eax + 8]
mov eax, dword [eax]
jmp 0x1005d1c1
xor eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x228]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x9c]
push esi
push edx
lea ecx, [ebp + 0xf4]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], 0xff4040
call fcn.100615e0
cmp eax, 1
jne 0x1005d77e
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], edi
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x1005d71d
cmp dword [ebx + 0x2c], edi
ja 0x1005d27b
mov ecx, ebx
call fcn.1005fdf0
lea esi, [ebx + 4]
push edi
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xdc], ecx
lea ecx, [esp + 0xd4]
mov edx, dword [eax + 0xc]
mov dword [esp + 0xe0], edx
call fcn.10060550
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xb4]
cmp eax, dword [ecx + 0x2c]
jl 0x1005d2d9
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x1005d26f
mov dword [esp + 0x10], edi
jmp 0x1005d71d
mov edx, esi
push edi
mov dword [esp + 0x14], edi
mov eax, dword [edx]
mov dword [esp + 0x6c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x70], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x74], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x6c]
call fcn.10060550
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x100], edx
mov eax, dword [esp + 0x6c]
mov edx, esi
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edx]
mov dword [esp + 0x108], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 8]
cmp eax, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x54], edx
jne 0x1005d382
lea eax, [esp + 0x88]
mov ecx, ebx
push eax
call fcn.1005f650
mov ecx, dword [esi]
mov dword [esp + 0x78], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x80], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x84], ecx
jmp 0x1005d71d
lea ecx, [ebx + 0x14]
mov edx, ecx
mov ecx, dword [edx]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + 8]
cmp eax, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x54], edx
jne 0x1005d3f3
lea eax, [esp + 0x88]
mov ecx, ebx
push eax
call fcn.1005e460
lea eax, [ebx + 0x14]
push 1
mov ecx, dword [eax]
mov dword [esp + 0xf4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xf8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xfc], ecx
lea ecx, [esp + 0xf4]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x104], edx
call fcn.1005fee0
jmp 0x1005d71d
lea ecx, [esp + 0x1c]
call fcn.10060540
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x110], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x114], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x118], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0x104]
mov dword [esp + 0x120], eax
call fcn.1005ffa0
mov edx, dword [ebx + 0x2c]
mov edi, eax
shr edx, 1
cmp edi, edx
jae 0x1005d5b4
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x48], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 8]
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x58], ecx
mov ecx, ebx
call fcn.1005f650
mov edx, esi
push edi
mov eax, dword [edx]
mov dword [esp + 0x134], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x138], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x13c], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x1a4]
mov dword [esp + 0x140], ecx
push edx
lea ecx, [esp + 0x138]
call fcn.1005ecb0
mov ecx, dword [eax]
push 1
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0xc]
mov eax, esi
mov dword [esp + 0x2c], edx
mov ecx, dword [eax]
mov dword [esp + 0xe4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xe8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xec], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
mov dword [esp + 0xf0], edx
mov dword [esp + 0x124], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x128], ecx
lea ecx, [esp + 0x1f4]
mov edx, dword [esi + 8]
push ecx
lea ecx, [esp + 0xe8]
mov dword [esp + 0x130], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x134], eax
call fcn.1005ecb0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
push 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x224]
push ecx
lea ecx, [esp + 0x34]
mov dword [edx + 0xc], eax
call fcn.1005ecb0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
push 2
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
lea ecx, [esp + 0x1e4]
push ecx
lea ecx, [esp + 0x148]
call fcn.1005ecb0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x230]
push ecx
mov dword [edx + 0xc], eax
call fcn.10060920
jmp 0x1005d6de
mov ecx, ebx
call fcn.1005f5b0
push eax
mov ecx, ebx
call fcn.1005e460
mov edx, dword [esi]
push edi
mov dword [esp + 0x154], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x158], eax
lea eax, [esp + 0x1e4]
mov ecx, dword [esi + 8]
push eax
mov dword [esp + 0x160], ecx
lea ecx, [esp + 0x158]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x164], edx
call fcn.1005ecb0
mov ecx, dword [eax]
push 1
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0xc]
lea eax, [ebx + 0x14]
mov ecx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x174]
mov edx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x6c], eax
call fcn.1005fee0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
push 2
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x194]
push ecx
lea ecx, [esp + 0x70]
mov dword [edx + 0xc], eax
call fcn.1005fee0
mov ecx, dword [eax]
sub esp, 0x10
mov edx, esp
sub esp, 0x10
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov ecx, esp
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x1c0]
push ecx
call fcn.100609c0
mov edi, dword [esp + 0x58]
mov ecx, 0xe
lea esi, [esp + 0xbc]
add esp, 0x34
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
cmp edi, dword [esp + 0x18]
jne 0x1005d77c
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1005d758
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp eax, edx
je 0x1005d758
lea ecx, [eax + 0x38]
cmp ecx, edx
mov dword [ebx + 0x1c], ecx
jne 0x1005d768
lea ecx, [esp + 0x88]
push ecx
push eax
call fcn.10060a50
add esp, 8
mov ecx, ebx
call fcn.1005fc90
jmp 0x1005d779
mov ecx, ebx
call fcn.1005fc90
mov eax, dword [ebx + 0x1c]
lea ecx, [eax + 0x38]
mov dword [ebx + 0x1c], ecx
lea edx, [esp + 0x88]
push edx
push eax
call fcn.10060a50
add esp, 8
inc dword [ebx + 0x2c]
xor edi, edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jb 0x1005d08a
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0x2c], eax
jbe 0x1005d934
lea eax, [ebp + 0x68]
mov ecx, dword [ebp + 0x68]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x190]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], edx
call fcn.1005f0b0
mov eax, dword [eax + 8]
lea ecx, [ebp + 0xf4]
mov edi, dword [eax]
mov eax, dword [edi + 4]
push eax
call fcn.100611b0
mov esi, eax
test esi, esi
je 0x1005d91d
mov eax, dword [esi + 8]
cmp eax, 0x800
jb 0x1005d823
mov ecx, dword [ebp + 0x30]
add eax, 0xfffff800
cmp eax, ecx
jae 0x1005d823
push eax
lea ecx, [ebp + 4]
call fcn.1004cd50
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x1005d82b
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xc]
mov ecx, ebp
push eax
call fcn.1005d9a0
lea ecx, [esp + 0x88]
mov ebp, eax
call fcn.1005d960
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x34]
push ebp
push ecx
push edx
mov edx, dword [esp + 0x3c]
push eax
push edi
lea ecx, [esp + 0x9c]
push esi
push ecx
lea ecx, [edx + 0xf4]
call fcn.100615e0
cmp eax, 1
jne 0x1005d919
mov edi, dword [ebx + 0x2c]
xor esi, esi
test edi, edi
jbe 0x1005d906
push esi
mov ecx, ebx
call fcn.1005e3b0
mov ecx, dword [esp + 0xb4]
mov edx, dword [eax + 0x2c]
cmp ecx, edx
jl 0x1005d8a3
inc esi
cmp esi, edi
jb 0x1005d886
jmp 0x1005d906
lea eax, [ebx + 4]
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x88]
mov edx, dword [eax + 8]
push ecx
mov dword [esp + 0x44], edx
lea edx, [esp + 0x184]
mov eax, dword [eax + 0xc]
push esi
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], eax
call fcn.1005ecb0
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x184]
push ecx
mov ecx, ebx
call fcn.1005e750
cmp esi, edi
jne 0x1005d919
lea edx, [esp + 0x88]
mov ecx, ebx
push edx
call fcn.1005e460
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x1005d7a9
xor edi, edi
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x15c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebx + 0x2c]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x210
ret 8