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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x50]
push ebx
xor ebx, ebx
push ebp
cmp eax, 2
push esi
mov dword [esp + 0xc], ebx
jne 0x419c58
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x419c1f
mov dword [eax], ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push 2
push eax
push ecx
call fcn.00419fb0
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
cmp eax, 3
jne 0x419ca4
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x419c6b
mov dword [eax], 1
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
push 3
push edx
push eax
call fcn.00419fb0
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
cmp eax, 1
jne 0x419cec
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x419cb3
mov dword [eax], ebx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
push 1
push ecx
push edx
call fcn.00419fb0
add esp, 0x24
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x60]
push ecx
push eax
mov eax, dword [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
cmp esi, ebx
je 0x419f9b
lea ecx, [esp + 0x10]
push ecx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
je 0x419d32
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x419d40
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
cmp eax, ebx
je 0x419d4e
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
imul eax, ecx
push eax
call fcn.0043a903
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x58], ebp
je 0x419f9b
mov ecx, dword [esp + 0x1c]
push edi
imul ecx, dword [esp + 0x1c]
push ebp
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
imul ecx, edx
cmp eax, ecx
jne 0x419f91
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2c]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0x28
mov word [esp + 0x3e], 0x20
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov word [esp + 0x3c], 1
call dword [sym.imp.USER32.dll_GetDC]
push ebx
lea ecx, [esp + 0x70]
push ebx
push ecx
lea edx, [esp + 0x38]
mov esi, eax
push ebx
push edx
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
cmp esi, ebx
mov dword [esp + 0x10], edi
je 0x419df4
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp edi, ebx
je 0x419f91
mov ebx, dword [esp + 0x6c]
test ebx, ebx
je 0x419f91
mov edi, dword [esp + 0x1c]
xor eax, eax
test edi, edi
jle 0x419e40
mov ecx, dword [esp + 0x20]
mov esi, eax
imul esi, ecx
sub edi, eax
add esi, ebp
dec edi
imul edi, ecx
mov edx, ecx
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
cmp eax, edi
jl 0x419e12
xor ebp, ebp
test edi, edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
jle 0x419f79
mov eax, dword [esp + 0x18]
lea edx, [edi - 1]
mov esi, eax
imul edx, eax
neg esi
test ebp, ebp
jne 0x419ea0
xor ecx, ecx
test eax, eax
jle 0x419e89
test ebp, ebp
jne 0x419e89
lea ebp, [edx + ecx]
cmp byte [ebx + ebp*4 + 3], 0
je 0x419e80
mov dword [esp + 0x64], 1
mov ebp, dword [esp + 0x64]
inc ecx
cmp ecx, eax
jl 0x419e6a
mov ecx, dword [esp + 0x68]
add edx, esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x68], ecx
jl 0x419e60
test ebp, ebp
je 0x419f79
mov dword [esp + 0x68], 0
xor ebp, ebp
test eax, eax
jle 0x419f64
sub edi, dword [esp + 0x68]
dec edi
imul edi, eax
add edi, ebp
shl edi, 2
mov dl, byte [edi + ebx + 3]
mov cl, byte [edi + ebx + 1]
mov byte [esp + 0x58], dl
mov byte [esp + 0x70], cl
mov esi, dword [esp + 0x58]
xor ecx, ecx
mov cl, byte [edi + ebx + 2]
mov al, byte [edi + ebx]
and esi, 0xff
mov byte [esp + 0x74], al
imul ecx, esi
mov eax, 0x80808081
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x70]
and ecx, 0xff
imul ecx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [edi + ebx], dl
imul ecx
add edx, ecx
mov eax, dword [esp + 0x6c]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esp + 0x74]
and ecx, 0xff
mov byte [edi + eax + 1], dl
imul ecx, esi
mov eax, 0x80808081
imul ecx
mov eax, dword [esp + 0x6c]
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
inc ebp
mov byte [edi + eax + 2], dl
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
cmp ebp, eax
jl 0x419eb2
mov ecx, dword [esp + 0x68]
inc ecx
cmp ecx, edi
mov dword [esp + 0x68], ecx
jl 0x419ea8
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x419f83
mov dword [eax], ebx
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x419f8d
mov dword [eax], ebp
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.00419740
add esp, 4
pop edi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x44
ret