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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [0x5c9d4c]
xor bl, bl
push edi
mov dword [esp + 0x1c], edx
mov esi, 1
mov byte [esp + 0x11], bl
mov byte [esp + 0x13], 1
mov byte [esp + 0x10], bl
mov byte [esp + 0x12], 1
call fcn.00435dc0
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x3c], eax
call fcn.00435dc0
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
test eax, eax
mov dword [esp + 0x14], 0x190
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
je 0x47935e
cmp byte [eax], 0x2d
jne 0x47935e
push 0x68
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4792c9
mov bl, 1
mov eax, dword [ebp + 4]
push 0x6e
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4792e0
mov byte [esp + 0x12], 0
mov ecx, dword [ebp + 4]
push 0x72
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4792f7
mov byte [esp + 0x11], 1
mov edx, dword [ebp + 4]
push 0x70
push edx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x47930e
mov byte [esp + 0x13], 0
mov eax, dword [ebp + 4]
push 0x62
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x479328
mov dword [esp + 0x20], 2
mov ecx, dword [ebp + 4]
push 0x6f
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x479342
mov dword [esp + 0x14], 0x2bc
mov edx, dword [ebp + 4]
push 0x63
push edx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x479359
mov byte [esp + 0x10], 1
mov esi, 2
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x47982d
xor edx, edx
call fcn.004f11f0
mov edi, eax
test edi, edi
je 0x479831
mov eax, dword [edi + 0x87c]
test eax, eax
je 0x479831
mov eax, dword [edi + 0x758]
test eax, eax
je 0x479831
mov eax, dword [edi + 0x960]
test eax, eax
je 0x479831
cmp dword [edi + 0x71c], 9
jne 0x479831
test bl, bl
je 0x4793bd
mov ecx, dword [edi]
call fcn.00499b50
mov eax, dword [ebp + esi*4 + 4]
inc esi
test eax, eax
jne 0x4793e8
mov al, byte [esp + 0x12]
test al, al
je 0x47982d
mov ecx, edi
call fcn.00477e90
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
mov bl, byte [esp + 0x11]
test bl, bl
push eax
je 0x4793fb
call fcn.005915c3
add esp, 4
jmp 0x479415
call fcn.0059164b
add esp, 4
mov ecx, eax
call fcn.00435dc0
mov dword [esp + 0x3c], eax
mov eax, dword [eax*4 + 0x5c8f18]
inc esi
mov dword [esp + 0x2c], eax
cmp dword [ebp + esi*4], 0
je 0x47982d
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
cmp dword [esp + 0x20], 2
mov dword [esp + 0x24], ecx
jne 0x479489
test bl, bl
je 0x479459
mov edx, dword [ebp + esi*4]
push edx
call fcn.005915c3
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x47947c
mov eax, dword [ebp + esi*4]
push eax
call fcn.0059164b
add esp, 4
mov ecx, eax
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + esi*4 + 4]
inc esi
test eax, eax
je 0x47982d
mov ebx, dword [esp + 0x1c]
mov byte [ebx], 0
mov edx, dword [edi + 0x9f4]
mov ecx, dword [ebp + esi*4]
mov dword [esp + 0x18], edx
call fcn.00503910
test eax, eax
jne 0x4794f0
push eax
push 0x104
push ebx
mov edx, esi
mov ecx, ebp
call fcn.00504590
mov esi, eax
test esi, esi
jge 0x4794c4
push 3
jmp 0x479833
mov eax, dword [ebp + esi*4 + 4]
inc esi
test eax, eax
je 0x47982d
push eax
call fcn.0059164b
mov ecx, dword [esp + 0x18]
add esp, 4
push 1
push ecx
mov ecx, dword [edi]
push eax
mov edx, ebx
call fcn.0048f3e0
mov dword [esp + 0x18], eax
inc esi
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x47982d
mov ecx, dword [ebp + esi*4 + 4]
test ecx, ecx
je 0x47982d
push eax
call fcn.0059164b
mov edx, dword [ebp + esi*4 + 4]
push edx
mov dword [esp + 0x54], eax
call fcn.0059164b
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x18]
add esp, 8
add esi, 2
test al, al
je 0x479566
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x47982d
mov ecx, dword [ebp + esi*4 + 4]
test ecx, ecx
je 0x47982d
push eax
call fcn.0059164b
mov dword [esp + 0x58], eax
mov eax, dword [ebp + esi*4 + 4]
push eax
call fcn.0059164b
add esp, 8
mov dword [esp + 0x58], eax
add esi, 2
jmp 0x47958a
mov edx, dword [edi + 0x960]
lea ecx, [esp + 0x5c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
cmp dword [ebp + esi*4], 0
je 0x47982d
mov edx, dword [esp + 0x78]
push ebp
mov ecx, esi
mov byte [edx], 0
call fcn.005039a0
mov edx, dword [edi + 0x87c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x44], ebp
je 0x4795d6
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
jne 0x4795e2
mov eax, dword [edi + 0x87c]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
mov ecx, dword [edi + 0x960]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esp + 0x48], eax
cmp byte [ebx], 0
je 0x47962c
mov edx, dword [esp + 0x14]
push ebx
push 0
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push edx
push 0
push 0
push 0
neg eax
push eax
call ebp
test eax, eax
mov dword [esp + 0x34], eax
jne 0x479686
lea eax, [edi + 0x990]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x479636
mov ebx, dword [esp + 0x1c]
mov edx, dword [edi + 0x9fc]
mov ecx, dword [edi + 0x9f8]
mov eax, dword [edi + 0x9f4]
push ebx
push 0
push 0
push 0
push 0
push edx
push 0
push 0
push 0
push ecx
push 0
push 0
mov dword [esp + 0x48], eax
push 0
neg eax
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x68], edx
call ebp
test eax, eax
mov dword [esp + 0x34], eax
je 0x479694
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
jmp 0x47969c
mov dword [esp + 0x40], 0
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x28], 0
je 0x4796b4
mov dword [esp + 0x28], 4
mov al, byte [esp + 0x10]
test al, al
jne 0x4796f1
mov ecx, dword [edi + 0xa0c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push edi
push ecx
mov ecx, dword [esp + 0x1c]
or edx, 0x13
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, ebx
call fcn.0047cc40
movzx ebp, ax
shr eax, 0x10
jmp 0x4796f9
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
add ebp, ecx
cmp ebp, dword [edi + 0x96c]
jle 0x47970d
mov dword [edi + 0x96c], ebp
mov edx, dword [esp + 0x50]
lea ebx, [eax + edx]
cmp ebx, dword [edi + 0x970]
jle 0x479722
mov dword [edi + 0x970], ebx
mov eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x24]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 0xa0c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push edi
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
movzx edx, byte [esp + 0x21]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x84]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], ebp
push ecx
mov dword [edx + 0xc], ebx
mov edx, dword [esp + 0xc4]
push eax
mov ecx, esi
call fcn.0047bf70
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dl, byte [esp + 0x12]
sub ebp, eax
sub ebx, ecx
test dl, dl
je 0x4797de
push 0xcc0020
push ecx
push eax
push esi
push ebx
push ebp
push ecx
push eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x4797f9
mov ecx, dword [esp + 0x40]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x48]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x87c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
push 0
jmp 0x479833
push 7
mov edx, dword [ebp]
xor ecx, ecx
push ecx
call fcn.004803b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4