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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x6514dc]
push ebx
xor ebx, ebx
mov dword [esp + 0x54], 0x8000
cmp eax, ebx
je 0x414e14
mov ax, word [0x651902]
cmp ax, bx
je 0x414e1a
mov ecx, dword [0x651900]
cmp cx, bx
je 0x414e1a
cmp ax, 0xc
ja 0x414e1a
cmp cx, 0xc
ja 0x414e1a
mov edx, dword [esp + 0xf8]
push edx
push 0x64b284
push 0x651670
push 0x64b2e8
push 0x651478
push 0x64b220
push ecx
push eax
call fcn.004148b0
add esp, 0x20
mov dword [esp + 0x54], eax
test ah, 0x80
jne 0x4157a3
mov ax, word [0x651902]
push ebp
push esi
push edi
push ebx
mov word [esp + 0x8c], ax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push ebx
mov ebp, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x16]
push eax
push ebx
push ebx
push 1
push ebp
call fcn.00405870
add esp, 0x14
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc0]
mov dword [esp + 0xa4], 0xffffff9c
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xb8], 0
mov byte [esp + 0xb9], 0
mov byte [esp + 0xba], 0
mov byte [esp + 0xbb], 2
mov byte [esp + 0xbc], 0
mov byte [esp + 0xbd], 0
mov byte [esp + 0xbe], 0
mov byte [esp + 0xbf], 0
push 0xffffff
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov dword [esp + 0x5c], ebx
or edi, 0xffffffff
mov dword [esp + 0x58], edi
cmp edi, 0xffffffff
jne 0x414f09
mov esi, dword [0x651900]
and esi, 0xffff
dec esi
mov dword [esp + 0x1c], esi
jmp 0x414f15
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
cmp edi, 0xffffffff
jne 0x414f23
xor eax, eax
test esi, esi
setge al
jmp 0x414f36
mov ecx, dword [0x651900]
xor eax, eax
and ecx, 0xffff
cmp esi, ecx
setl al
test eax, eax
je 0x415716
mov dx, word [esi*2 + 0x651478]
mov eax, edx
and eax, 0xffff
lea ecx, [eax + eax*2]
shl ecx, 1
mov ax, word [ecx + 0x5012ac]
add ax, 0x100
cmp dword [esi*8 + 0x64b2e8], 0
mov dword [esp + 0x2c], eax
jne 0x414fca
cmp dword [esi*8 + 0x64b2ec], 0
jne 0x414fca
cmp edi, 0xffffffff
jne 0x41570b
test ebx, ebx
jne 0x41570b
mov dx, word [0x651902]
xor ecx, ecx
mov cx, dx
inc dx
mov word [0x651902], dx
mov word [ecx*2 + 0x64b220], ax
mov eax, dword [esi*8 + 0x651670]
mov dword [ecx*8 + 0x6514e0], eax
mov eax, dword [esi*8 + 0x651674]
add esi, edi
mov dword [ecx*8 + 0x6514e4], eax
mov dword [esp + 0x1c], esi
jmp 0x414f15
test ebx, ebx
jne 0x414fda
cmp dx, 7
ja 0x41570b
jmp 0x414fe9
cmp ebx, 1
jne 0x414fe9
cmp dx, 7
jbe 0x41570b
mov edx, dword [esi*8 + 0x64b2ec]
imul edx, edi
test edx, edx
jl 0x41570b
and eax, 0xffff
push 0
shl eax, 4
add eax, 0x64b478
push 1
mov edx, eax
push 1
mov eax, dword [edx]
mov ebx, dword [edx + 4]
lea eax, [eax + eax*4]
mov edi, dword [edx + 8]
lea eax, [eax + eax*4]
shl eax, 2
mov edx, dword [edx + 0xc]
lea edi, [edi + edi*4]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x110]
lea ebx, [ebx + ebx*4]
lea edx, [edx + edx*2]
mov dword [esp + 0x50], edx
xor edx, edx
mov dx, word [ecx + 0x5012a8]
mov ecx, dword [esp + 0x50]
add edx, ecx
xor ecx, ecx
shl edx, 9
mov cx, word [edx + 0x631e78]
cdq
idiv ecx
mov dword [esp + 0x3c], eax
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ecx
mov edi, eax
lea eax, [ebx + ebx*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x44], edi
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x48], eax
mov eax, dword [esi*8 + 0x651674]
push eax
call fcn.0040c350
mov edx, dword [esp + 0x4c]
mov ecx, ebx
sub ecx, edx
mov edx, dword [esi*8 + 0x651670]
add esp, 4
add eax, ecx
push eax
push edx
call fcn.0040c350
mov ecx, dword [esp + 0x44]
add esp, 4
sub edi, ecx
add eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov edi, eax
mov dword [esp + 0x40], 0
push edi
push ebp
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xe0]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
xor eax, eax
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe8]
push 4
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x98]
push eax
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0xa8]
push 0
xor ecx, ecx
mov cl, byte [esp + 0x35]
push edx
xor dx, dx
lea eax, [eax + eax*2]
mov dl, cl
mov dword [esp + 0x70], eax
lea eax, [edx + eax + 0x6a]
push eax
push ebp
call fcn.00405870
mov eax, dword [esp + 0x44]
add esp, 0x14
lea ecx, [esp + 0x2c]
push 1
push ecx
neg eax
push ebx
push eax
push ebp
mov dword [esp + 0xa4], eax
call dword [sym.imp.GDI32.dll_TextOutA]
push edi
call fcn.00414a70
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x8c], eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esi*8 + 0x651674]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi*8 + 0x651670]
mov dword [esp + 0x54], edx
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x58], ebx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp word [0x651902], 0
mov dword [esp + 0x20], 0
jbe 0x41532f
mov eax, dword [esp + 0x104]
mov dword [esp + 0x18], 0x6514e0
mov dword [esp + 0x10], 0x64b220
lea eax, [eax + eax*2]
shl eax, 8
mov dword [esp + 0x24], eax
jmp 0x415225
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [edx]
add ecx, eax
shl ecx, 4
add ecx, 0x64b478
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
lea edx, [edx + edx*4]
mov ebx, dword [ecx + 8]
lea edi, [edi + edi*4]
mov eax, dword [ecx + 0xc]
lea ebx, [ebx + ebx*4]
mov dword [esp + 0x74], eax
xor eax, eax
mov ax, word [esi*2 + 0x651478]
lea ecx, [eax + eax*2]
xor eax, eax
mov ax, word [ecx*2 + 0x5012a8]
mov ecx, dword [esp + 0x44]
add eax, ecx
xor ecx, ecx
shl eax, 9
mov cx, word [eax + 0x631e78]
lea eax, [edx + edx*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x68], eax
lea eax, [ebx + ebx*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x70], eax
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ecx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
cmp ecx, eax
jge 0x4152fb
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x68]
cmp edx, eax
jle 0x4152fb
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jle 0x4152fb
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
cmp ecx, eax
jl 0x415327
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [0x651902]
add ebx, 2
add edi, 8
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
jl 0x415221
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [0x651902]
cmp ecx, eax
je 0x4156be
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x94]
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dx, word [0x651902]
cmp ecx, edx
jge 0x41552e
mov eax, dword [esp + 0x104]
lea esi, [ecx*8 + 0x6514e0]
lea ecx, [ecx*2 + 0x64b220]
lea eax, [eax + eax*2]
mov dword [esp + 0x10], ecx
shl eax, 8
mov dword [esp + 0x24], eax
jmp 0x4153a5
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [ecx]
add edx, eax
shl edx, 4
add edx, 0x64b478
mov eax, edx
mov edx, dword [eax]
mov edi, dword [eax + 4]
lea edx, [edx + edx*4]
mov ebx, dword [eax + 8]
lea edi, [edi + edi*4]
mov ecx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x1c]
lea ebx, [ebx + ebx*4]
mov ax, word [ecx*2 + 0x651478]
xor ecx, ecx
lea eax, [eax + eax*2]
mov cx, word [eax*2 + 0x5012a8]
mov eax, ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
xor ecx, ecx
shl eax, 9
mov cx, word [eax + 0x631e78]
lea eax, [edx + edx*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x78], eax
lea eax, [ebx + ebx*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x80], eax
lea eax, [edi + edi*4]
shl eax, 2
cdq
idiv ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x80]
cmp ecx, eax
jge 0x4154fa
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x78]
cmp edx, eax
jle 0x4154fa
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
jle 0x4154fa
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x7c]
cmp ecx, eax
jge 0x4154fa
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x16]
xor ecx, ecx
push edx
mov cl, byte [edi + 1]
lea eax, [esp + 0xa8]
push 0
xor dx, dx
push eax
mov eax, dword [esp + 0x70]
mov dl, cl
lea ecx, [edx + eax + 0x6a]
push ecx
push ebp
call fcn.00405870
mov eax, dword [esp + 0x30]
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
add esp, 0x14
mov edx, dword [eax*8 + 0x651674]
push 1
push edi
mov edi, dword [esp + 0x3c]
sub edx, ebx
mov ebx, dword [eax*8 + 0x651670]
add edx, edi
mov edi, dword [esp + 0x38]
sub ecx, ebx
sub ecx, edi
push edx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [0x651902]
add edi, 2
add esi, 8
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
jl 0x4153a1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
push edi
call fcn.00414a70
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x41566e
lea eax, [esp + 0x16]
xor edx, edx
mov dl, byte [esp + 0x2d]
push eax
lea ecx, [esp + 0xa8]
push 0
xor ax, ax
push ecx
mov ecx, dword [esp + 0x70]
mov al, dl
lea edx, [eax + ecx + 0x6a]
push edx
push ebp
call fcn.00405870
mov ecx, dword [esp + 0xa4]
add esp, 0x14
lea eax, [esp + 0x2c]
push 1
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_TextOutA]
push edi
call fcn.00414a70
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
add eax, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x41567c
mov eax, dword [esi*8 + 0x64b2ec]
test eax, eax
je 0x4156be
mov ecx, dword [esi*8 + 0x651674]
neg eax
shl eax, 1
add ecx, eax
test edi, edi
mov dword [esi*8 + 0x651674], ecx
je 0x4151a8
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esi*8 + 0x651674]
push 0
push 1
push 1
push edx
call fcn.0040c350
mov edi, dword [esp + 0x4c]
mov edx, dword [esi*8 + 0x651670]
mov ecx, ebx
add esp, 4
sub ecx, edi
add eax, ecx
push eax
push edx
call fcn.0040c350
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
sub ecx, edx
add esp, 4
add eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
lea edx, [esp + 0xe0]
mov dword [esp + 0x28], eax
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe4]
push eax
push ecx
push 0
lea edx, [esp + 0xa0]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x28]
jmp 0x4151a8
mov eax, dword [esp + 0x18]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x4156be
cmp word [esp + 0x40], 1
jbe 0x4156be
xor ecx, ecx
mov cx, word [esi*2 + 0x64b284]
mov ax, word [ecx*2 + 0x64b21e]
cmp ax, 0xae
jb 0x4156be
cmp ax, 0xd5
ja 0x4156be
mov edx, dword [esi*8 + 0x64b2ec]
mov eax, dword [esi*8 + 0x651674]
neg edx
shl edx, 2
add eax, edx
mov dword [esi*8 + 0x651674], eax
mov cx, word [0x651902]
mov dx, word [esp + 0x2c]
xor eax, eax
push edi
mov ax, cx
inc cx
mov word [0x651902], cx
mov word [eax*2 + 0x64b220], dx
mov edx, dword [esi*8 + 0x651670]
mov dword [eax*8 + 0x6514e0], edx
mov edx, dword [esi*8 + 0x651674]
mov dword [eax*8 + 0x6514e4], edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
add esi, edi
mov dword [esp + 0x1c], esi
jmp 0x414f15
add edi, 2
cmp edi, 2
mov dword [esp + 0x58], edi
jl 0x414ef1
inc ebx
cmp ebx, 2
mov dword [esp + 0x5c], ebx
jl 0x414eea
lea eax, [esp + 0x16]
push eax
push 0
push 0
push 0
push ebp
call fcn.00405870
add esp, 0x14
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x6514dc]
pop edi
pop esi
pop ebp
test eax, eax
je 0x4157a3
mov eax, dword [esp + 0x54]
test ah, 0x80
jne 0x4157a3
mov ecx, dword [esp + 0xf8]
mov dx, word [0x651900]
and eax, 0x7fff
push eax
mov eax, dword [esp + 0x80]
push ecx
push 0x64b284
push 0x651670
push 0x64b2e8
push 0x651478
push 0x64b220
push edx
push eax
call fcn.00414690
add esp, 0x24
xor eax, eax
pop ebx
add esp, 0xe8
ret