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

Disassembly:
sub esp, 0x58
cmp dword [esi + 0x18], 0
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push edi
mov edi, eax
jne 0x4a644a
push edi
call ebx
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4a680a
mov eax, dword [esi + 0x60]
cmp eax, 1
jne 0x4a6462
mov eax, dword [esi + 0x44]
jmp 0x4a646f
cmp eax, 2
jne 0x4a646c
mov eax, dword [esi + 0x48]
jmp 0x4a646f
mov eax, dword [esi + 0x40]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebp
cmp dword [esi + 0x10], 0
mov dword [esp + 0x24], eax
jne 0x4a680a
push edi
call ebx
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
push eax
call ebp
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x74]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x78]
sub edx, eax
push edx
mov edx, dword [esp + 0x84]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
je 0x4a672f
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x4a672f
mov eax, dword [esi + 0x60]
cmp eax, 1
jne 0x4a6552
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4a6540
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4a6545
call fcn.005d29f1
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + edi + 4]
mov dword [esp + 0x10], edx
jmp 0x4a65b7
cmp eax, 2
mov eax, dword [esi + 0x50]
jne 0x4a658a
test eax, eax
je 0x4a6578
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4a657d
call fcn.005d29f1
mov eax, dword [esi + 0x50]
mov ecx, dword [edi + eax + 8]
mov dword [esp + 0x10], ecx
jmp 0x4a65b7
test eax, eax
je 0x4a65a8
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4a65ad
call fcn.005d29f1
mov edx, dword [esi + 0x50]
mov eax, dword [edi + edx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a6724
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4a65ef
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4a65f4
call fcn.005d29f1
mov edx, dword [esi + 0x50]
mov ecx, dword [edi + edx + 0x1c]
mov ebx, dword [edi + edx + 0x28]
lea eax, [edi + edx + 0x1c]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
je 0x4a6632
mov ecx, dword [esi + 0x54]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4a6637
call fcn.005d29f1
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x50]
mov ebp, dword [eax + ecx + 0xc]
mov edx, dword [eax + ecx + 0x10]
lea eax, [eax + ecx + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
sub ecx, ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
je 0x4a66b4
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x4a66b4
mov edx, dword [esi + 0x18]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ebp
push eax
mov eax, dword [esp + 0x40]
sub ebx, ecx
push ebx
sub edi, eax
push edi
push ecx
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add ebp, 1
add edi, 0x2c
jmp 0x4a64e6
xor eax, eax
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x50]
push 0xcc0020
add ecx, edx
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x34]
sub eax, ebp
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esi + 0x18]
push ebp
push edx
sub ebx, ecx
push ebx
sub edi, eax
push edi
push ecx
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add ebp, 1
add edi, 0x2c
jmp 0x4a64e6
mov ecx, dword [esi + 0x10]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push edx
call ebx
mov eax, dword [esi + 0x2c]
sub eax, 0x10
call fcn.0040a210
mov edi, eax
add edi, 0x10
cmp dword [esi + 0x38], 1
jne 0x4a6789
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x10]
push 0x25
lea edx, [esp + 0x6c]
push edx
mov ebp, eax
mov eax, dword [edi - 0xc]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x4a67cb
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esi + 0x60], 2
mov ebp, eax
jne 0x4a67aa
mov ecx, dword [esi + 0x10]
push 0xffffff
push ecx
call ebx
add dword [esp + 0x68], 0x1e
mov eax, dword [edi - 0xc]
mov ecx, dword [esi + 0x10]
push 0x24
lea edx, [esp + 0x6c]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x10]
push ebp
push edx
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call ebx
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [edi - 0x10]
mov dword [esi + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a680a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret 0x10