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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff98
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea eax, [edi + 0x2c]
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
mov eax, dword [edi + 8]
push eax
lea ecx, [edi + 0xc]
lea edx, [edi + 0x3c]
mov eax, dword [edi + 0x4c]
call fcn.0058c4c4
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x59df67
lea eax, [esp + 0x50]
call fcn.005358b0
lea edx, [esp + 0x50]
lea eax, [edi + 0xc]
call fcn.0040b550
test al, al
jne 0x59de53
xor eax, eax
mov dword [edi + 0x78], eax
xor eax, eax
mov dword [edi + 0x7c], eax
jmp 0x59deae
mov eax, dword [edi + 0x20]
sar eax, 1
jns 0x59de5d
adc eax, 0
mov edx, dword [edi + 0x18]
sub edx, eax
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
call fcn.0040b500
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
call fcn.005358b0
lea edx, [esp + 0x54]
pop eax
call fcn.0040b550
test al, al
je 0x59dea1
movzx eax, byte [edi + 0x74]
inc eax
mov dword [edi + 0x78], eax
xor eax, eax
mov dword [edi + 0x7c], eax
jmp 0x59deae
xor eax, eax
mov dword [edi + 0x78], eax
movzx eax, byte [edi + 0x74]
inc eax
mov dword [edi + 0x7c], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_BeginPaint
mov esi, dword [edi + 0x54]
mov eax, esi
call fcn.00553754
mov edx, eax
mov eax, esi
call fcn.00553d24
mov eax, dword [edi + 0x54]
call fcn.00553754
test al, al
jne 0x59df54
mov eax, dword [esp + 4]
test eax, eax
jne 0x59def0
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x59def2
mov esi, eax
mov eax, dword [edi + 0x54]
mov byte [eax + 0x39], 1
mov eax, edi
call fcn.0059e1c8
push 0xcc0020
push 0
mov eax, dword [edi + 0x70]
push eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
call fcn.0045dbc4
call fcn.0045832c
push eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [edi + 0x70]
push eax
push 0
mov eax, dword [edi + 0x70]
push eax
push esi
call sub.gdi32.dll_BitBlt
cmp dword [esp + 4], 0
je 0x59df54
push esi
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_EndPaint
jmp 0x59e089
lea eax, [esp + 0x50]
call fcn.005358b0
lea edx, [esp + 0x50]
lea eax, [edi + 0xc]
call fcn.0040b550
test al, al
jne 0x59df8c
xor eax, eax
mov dword [edi + 0x78], eax
xor eax, eax
mov dword [edi + 0x7c], eax
jmp 0x59dfe7
mov eax, dword [edi + 0x18]
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [edi + 0x1c]
sar eax, 1
jns 0x59df9f
adc eax, 0
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
call fcn.0040b500
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x54]
call fcn.005358b0
lea edx, [esp + 0x54]
pop eax
call fcn.0040b550
test al, al
je 0x59dfda
movzx eax, byte [edi + 0x74]
inc eax
mov dword [edi + 0x78], eax
xor eax, eax
mov dword [edi + 0x7c], eax
jmp 0x59dfe7
xor eax, eax
mov dword [edi + 0x78], eax
movzx eax, byte [edi + 0x74]
inc eax
mov dword [edi + 0x7c], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_BeginPaint
mov eax, dword [edi + 0x54]
call fcn.00553754
mov ebx, eax
mov eax, dword [edi + 0x54]
mov byte [eax + 0x1c], bl
test bl, bl
jne 0x59e07b
mov eax, dword [esp + 4]
test eax, eax
jne 0x59e01e
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x59e020
mov esi, eax
mov eax, dword [edi + 0x54]
mov byte [eax + 0x39], 1
mov eax, edi
call fcn.0059e1c8
push 0xcc0020
push 0
push 0
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
call fcn.0045dbc4
call fcn.0045832c
push eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
cmp dword [esp + 4], 0
je 0x59e07b
push esi
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi + 0x4c]
push eax
call sub.user32.dll_EndPaint
add esp, 0x68
pop edi
pop esi
pop ebx
ret