Function at 0x438e40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4591c8
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x8ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8d8]
mov edi, ecx
mov esi, edx
mov ebx, dword [esp + 0x8d0]
test esi, esi
mov eax, dword [esp + 0x8c0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c4]
mov dword [esp + 0x2c], eax
jg 0x438eb1
mov eax, 1
jmp 0x43965b
lea ecx, [esp + 0x54]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x438ef0
mov edi, str.DrawBitmapResize
call fcn.0042a6d0
xor eax, eax
jmp 0x43965b
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x8d4]
mov dword [esp + 0x50], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x8dc]
mov edx, eax
mov eax, ecx
sub eax, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
sub ebx, edx
sub esi, eax
sub ebx, edi
sub esi, ebp
test edi, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], esi
jle 0x4390bb
test ebp, ebp
jle 0x4390bb
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x8cc]
mov esi, dword [esp + 0x8c8]
mov eax, dword [esp + 0x18]
push 0xff00ff
push ebp
push edi
push 0
push 0
push edx
push ebp
push edi
push ebx
push esi
push eax
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test eax, eax
jne 0x4390c9
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x465130
push 0x400
lea ecx, [esp + 0xc8]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x2c
lea ecx, [esp + 0x6c]
call fcn.0042a750
xor esi, esi
mov dword [esp + 0x8b4], esi
lea eax, [esp + 0xa4]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x438fe0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
lea esi, [esp + 0x3c]
call fcn.00406f20
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 1
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x439032
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0043ef40
add esp, 4
mov edx, dword [esp + 0x70]
xor eax, eax
cmp dword [esp + 0x84], esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
jae 0x439056
lea edx, [esp + 0x70]
cmp dword [0x471b30], eax
je 0x439098
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439063
mov ecx, dword [0x471b30]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x4390c2
mov edx, dword [esp + 0x70]
push edx
call fcn.0043ef40
add esp, 4
jmp 0x4390c2
mov ebx, dword [esp + 0x8cc]
mov esi, dword [esp + 0x8c8]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4390ee
mov ecx, dword [esp + 0x28]
push ebp
push ecx
mov ecx, dword [esp + 0x20]
push 0
push edi
push ebp
push eax
push ebx
lea edx, [esi + edi]
push edx
mov edx, dword [esp + 0x34]
call fcn.00438ba0
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x439270
test ebp, ebp
jle 0x439270
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push 0xff00ff
push ebp
push eax
push 0
add ecx, edi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ebp
push eax
mov eax, dword [esp + 0x3c]
add eax, esi
push ebx
add eax, edi
push eax
push ecx
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test eax, eax
jne 0x439270
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x4651d8
push 0x400
lea edx, [esp + 0xc8]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x2c
lea ecx, [esp + 0x6c]
call fcn.0042a750
mov dword [esp + 0x8b4], 2
xor esi, esi
lea eax, [esp + 0xa4]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x439190
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x3c]
call fcn.00406f20
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 3
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x4391e2
mov edx, dword [esp + 0x38]
push edx
call fcn.0043ef40
add esp, 4
mov edx, dword [esp + 0x70]
xor eax, eax
cmp dword [esp + 0x84], esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
jae 0x439206
lea edx, [esp + 0x70]
cmp dword [0x471b30], eax
je 0x439248
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439213
mov ecx, dword [0x471b30]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x439269
mov edx, dword [esp + 0x70]
push edx
call fcn.0043ef40
add esp, 4
mov esi, dword [esp + 0x8c8]
test edi, edi
jle 0x439295
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push edi
push ebp
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edi
lea edx, [ebx + ebp]
push edx
mov edx, dword [esp + 0x30]
push esi
call fcn.00438ba0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4392c4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [ebx + ebp]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esi + edi]
push eax
call fcn.00438ba0
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x4392fa
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ebp
add edx, edi
push edx
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
lea edx, [ebx + ebp]
add eax, esi
push edx
mov edx, dword [esp + 0x30]
add eax, edi
push eax
call fcn.00438ba0
test edi, edi
jle 0x439480
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x439480
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0xff00ff
push eax
push edi
add ecx, ebp
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edx
push eax
mov eax, dword [esp + 0x40]
push edi
add eax, ebx
add eax, ebp
push eax
push esi
push ecx
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test eax, eax
jne 0x439480
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x465280
push 0x400
lea edx, [esp + 0xc8]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x2c
lea ecx, [esp + 0x6c]
call fcn.0042a750
mov dword [esp + 0x8b4], 4
xor esi, esi
lea eax, [esp + 0xa4]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4393a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x3c]
call fcn.00406f20
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 5
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x4393f2
mov edx, dword [esp + 0x38]
push edx
call fcn.0043ef40
add esp, 4
mov edx, dword [esp + 0x70]
xor eax, eax
cmp dword [esp + 0x84], esi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
jae 0x439416
lea edx, [esp + 0x70]
cmp dword [0x471b30], eax
je 0x439458
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439423
mov ecx, dword [0x471b30]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x439479
mov edx, dword [esp + 0x70]
push edx
call fcn.0043ef40
add esp, 4
mov esi, dword [esp + 0x8c8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4394b6
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push edx
mov edx, dword [esp + 0x28]
add edx, ebp
push edx
mov edx, dword [esp + 0x20]
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
add eax, ebx
add eax, ebp
push eax
lea ecx, [esi + edi]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00438ba0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x439644
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x439644
mov edx, dword [esp + 0x20]
push 0xff00ff
push eax
push ecx
add edx, ebp
push edx
mov edx, dword [esp + 0x38]
add edx, edi
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
add eax, ebx
add eax, ebp
add ecx, esi
push eax
add ecx, edi
push ecx
push edx
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test eax, eax
jne 0x439644
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x465328
push 0x400
lea eax, [esp + 0x4c8]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x2c
lea ecx, [esp + 0x88]
call fcn.0042a750
mov dword [esp + 0x8b4], 6
xor esi, esi
lea eax, [esp + 0x4a4]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x439570
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a8]
push ecx
lea esi, [esp + 0x3c]
call fcn.00406f20
xor ebx, ebx
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x90]
mov byte [esp + 0x8bc], 7
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jb 0x4395c6
mov eax, dword [esp + 0x38]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xa0], ebp
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jae 0x4395ee
lea edx, [esp + 0x8c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x43962b
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439600
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0xa0], ebp
jb 0x439644
mov eax, dword [esp + 0x8c]
push eax
call fcn.0043ef40
add esp, 4
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x8ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x890]
xor ecx, esp
call fcn.0043ef12
add esp, 0x8a4
ret 0x24