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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464741
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8bc
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
push str.recreateBuffer__dx_dx_d_
xor edi, edi
push 0x4880d0
mov dword [esp + 0x24], edi
call fcn.004014b0
mov ebx, dword [esi + 0x28]
add esp, 0x14
cmp ebx, edi
je 0x41bd39
mov ebp, dword [esi + 0x2c]
test ebp, ebp
je 0x41bd39
mov eax, dword [esi + 8]
test eax, eax
je 0x41bd39
xor eax, eax
mov ecx, 0x10a
lea edi, [esp + 0x198]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 0xd]
test cl, cl
mov cx, word [esi + 4]
sete al
mov word [esp + 0x1a6], cx
mov ecx, dword [esi + 4]
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x198], 0x28
mov word [esp + 0x1a4], 1
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, ebx
imul eax, ebp
xor edx, edx
neg ebp
mov ebx, 8
cmp ecx, ebx
mov ecx, dword [esi + 0x1c]
setle dl
mov dword [esp + 0x1ac], eax
mov eax, dword [esi + 0x10]
shl eax, cl
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1a0], ebp
dec edx
and edx, 3
mov dword [esp + 0x1a8], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c0], eax
mov eax, dword [esi + 0x18]
shl edx, cl
mov ecx, dword [esi + 0x24]
shl eax, cl
mov dword [esp + 0x1c4], edx
mov dword [esp + 0x1c8], eax
mov eax, dword [esi + 0xc48]
test eax, eax
je 0x41bbfd
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x1a8]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
jmp 0x41bc34
mov eax, dword [esi + 0xc44]
push eax
lea ecx, [esp + 0x30]
call fcn.0041a4d0
mov eax, dword [eax + 4]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x1a8]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.0041a570
test edi, edi
jne 0x41bc72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46d160
lea ecx, [esp + 0x6cc]
call fcn.00443bf0
mov esi, eax
push 0x47c164
lea eax, [esp + 0x98]
mov ecx, 0x41
lea edi, [esp + 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
push str.recreated
push 0x4880d0
call fcn.004014b0
mov eax, dword [esi + 0x3c]
add esp, 8
test eax, eax
je 0x41bdfe
push 0x46d138
push 0x4880d0
call fcn.004014b0
mov eax, dword [esi + 0xc48]
add esp, 8
test eax, eax
je 0x41bd50
cmp dword [esi + 4], ebx
jg 0x41bcc2
push edi
push eax
lea ecx, [esi + 0x40]
push ecx
call fcn.0041b870
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0xc48]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0041a660
mov ecx, dword [esi + 0xc48]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8dc], 0
call fcn.0041a660
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x14]
call fcn.0041a730
lea ecx, [esp + 0x20]
mov dword [esp + 0x8d4], 0xffffffff
call fcn.0041a730
jmp 0x41bdfe
push 0x46d118
push 0x4880d0
call fcn.004014b0
add esp, 8
jmp 0x41bdfe
mov eax, dword [esi + 0xc44]
push eax
lea ecx, [esp + 0x18]
call fcn.0041a4d0
cmp dword [esi + 4], ebx
mov dword [esp + 0x8d4], 1
jg 0x41bd82
mov ecx, dword [esp + 0x18]
push edi
push ecx
lea edx, [esi + 0x40]
push edx
call fcn.0041b870
add esp, 0xc
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0041a660
mov edx, dword [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x8dc], 2
call fcn.0041a660
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x20]
call fcn.0041a730
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8d4], 1
call fcn.0041a730
lea ecx, [esp + 0x14]
mov dword [esp + 0x8d4], 0xffffffff
call fcn.0041a570
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x41be14
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
cmp edi, ebx
je 0x41bfa5
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push 0x54
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x41be72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetObject
lea ecx, [esp + 0x6cc]
call fcn.00443bf0
mov esi, eax
push 0x47c164
lea eax, [esp + 0x98]
mov ecx, 0x41
lea edi, [esp + 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 4]
mov eax, ecx
imul eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
mov dword [esi + 0xc40], ecx
jns 0x41be9b
dec edx
or edx, 0xfffffffc
inc edx
je 0x41bec3
sub eax, edx
lea eax, [eax*8 + 0x20]
cdq
idiv edi
push eax
push ecx
push str.adjusting_DIB_stride:__d_to__d
push 0x4880d0
mov dword [esi + 0xc40], eax
call fcn.00401480
add esp, 0x10
movzx eax, word [esp + 0x4a]
mov cl, byte [esi + 0xd]
test cl, cl
mov byte [esi + 0xc], 0
mov dword [esi + 4], eax
jne 0x41bedf
cmp eax, 8
jg 0x41bedf
xor ecx, ecx
jmp 0x41bee4
mov ecx, 1
cmp eax, 8
mov byte [esi + 0xd], cl
jle 0x41bf2d
mov eax, dword [esp + 0x78]
lea ecx, [esi + 0x1c]
push ecx
lea edx, [esi + 0x10]
push edx
push eax
call fcn.0041a190
mov eax, dword [esp + 0x88]
lea ecx, [esi + 0x20]
push ecx
lea edx, [esi + 0x14]
push edx
push eax
call fcn.0041a190
mov eax, dword [esp + 0x98]
lea ecx, [esi + 0x24]
push ecx
lea edx, [esi + 0x18]
push edx
push eax
call fcn.0041a190
add esp, 0x24
jmp 0x41bf34
mov ecx, esi
call fcn.0041b970
mov al, byte [esi + 0xd]
test al, al
je 0x41bfa5
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
shl eax, cl
mov ecx, dword [esi + 0x20]
shl edx, cl
mov ecx, dword [esi + 0x1c]
mov dword [esi + 8], ebx
or eax, edx
mov edx, dword [esi + 0x10]
shl edx, cl
or eax, edx
je 0x41bf6a
xor ecx, ecx
mov edi, edi
shr eax, 1
inc ecx
cmp eax, ebx
jne 0x41bf60
mov dword [esi + 8], ecx
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jle 0x41bfa5
push str.Bad_DIBSection_format__depth_exceeds_bpp_
lea ecx, [esp + 0x7cc]
call fcn.004012a0
mov esi, eax
mov ecx, 0x40
lea edi, [esp + 0x5c4]
rep movsd dword es:[edi], dword [esi]
push 0x47bc3c
lea ecx, [esp + 0x5c8]
push ecx
call fcn.0044777e
mov ecx, dword [esp + 0x8cc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret