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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0xf8], eax
mov dword [esp + 0xf0], eax
add eax, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x104], eax
mov dword [esp + 0xfc], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], ebx
call fcn.0048edf0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x49d860
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret
push 0x2c
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00509940
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
mov dword [esp + 0x2c], edi
imul edi, eax
push 0
mov edx, eax
neg edx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x38], edx
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [edi*4]
mov dword [esp + 0x48], ebx
push 0
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x48], 0x200001
mov dword [esp + 0x38], edi
mov dword [esp + 0x50], eax
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x49d849
xor ecx, ecx
test edi, edi
jle 0x49d9ba
mov eax, dword [esp + 0x10]
jmp 0x49d8f0
mov dl, byte [esi + ecx*4 + 3]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x10]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x49d95e
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 2]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 1]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x10]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x10]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x49d97e
mov dl, byte [esi + ecx*4 + 2]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 1]
mov edx, dword [esp + 0x10]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi + ecx*4]
mov edx, dword [esp + 0x10]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
cmp dword [eax + ecx*4], edx
jne 0x49d9af
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x10]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x10]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x10]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x10]
mov bl, 1
inc ecx
cmp ecx, dword [esp + 0x20]
jl 0x49d8f0
push esi
call fcn.0050567c
push 0xa0
call fcn.004a47f3
xor edx, edx
add esp, 8
cmp eax, edx
je 0x49d9e0
lea ecx, [eax + 0x1c]
xor esi, esi
mov dword [eax + 0x18], ecx
mov word [ecx], si
jmp 0x49d9e2
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x108]
pop esi
mov byte [eax + 0x14], bl
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0xc]
pop ebx
xor ecx, esp
mov dword [eax + 0xc], edx
call fcn.00503edf
mov esp, ebp
pop ebp
ret