Function at 0x43a240
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45b848
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x890], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
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 0x43a2b1
mov eax, 1
jmp 0x43aa5b
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 0x43a2f0
mov edi, str.DrawBitmapResize
call fcn.0042bcc0
xor eax, eax
jmp 0x43aa5b
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 0x43a4bb
test ebp, ebp
jle 0x43a4bb
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 0x43a4c9
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x467308
lea ecx, [esp + 0xc4]
push 0x200
push ecx
call fcn.004414db
xor esi, esi
add esp, 0x28
lea ecx, [esp + 0x6c]
mov word [esp + 0x4a2], si
call fcn.0042bd40
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]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x43a3e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xa8]
push edx
lea esi, [esp + 0x3c]
call fcn.00406f80
mov eax, esi
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 1
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x43a432
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004415cb
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 0x43a456
lea edx, [esp + 0x70]
cmp dword [0x474bb0], eax
je 0x43a498
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a463
mov ecx, dword [0x474bb0]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x43a4c2
mov edx, dword [esp + 0x70]
push edx
call fcn.004415cb
add esp, 4
jmp 0x43a4c2
mov ebx, dword [esp + 0x8cc]
mov esi, dword [esp + 0x8c8]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x43a4ee
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.00439fa0
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x43a671
test ebp, ebp
jle 0x43a671
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 0x43a671
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x4673b0
lea edx, [esp + 0xc4]
push 0x200
push edx
call fcn.004414db
xor esi, esi
add esp, 0x28
lea ecx, [esp + 0x6c]
mov word [esp + 0x4a2], si
call fcn.0042bd40
mov dword [esp + 0x8b4], 2
lea eax, [esp + 0xa4]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], esi
mov word [esp + 0x38], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x43a591
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x3c]
call fcn.00406f80
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 3
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x43a5e3
mov edx, dword [esp + 0x38]
push edx
call fcn.004415cb
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 0x43a607
lea edx, [esp + 0x70]
cmp dword [0x474bb0], eax
je 0x43a649
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a614
mov ecx, dword [0x474bb0]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x43a66a
mov edx, dword [esp + 0x70]
push edx
call fcn.004415cb
add esp, 4
mov esi, dword [esp + 0x8c8]
test edi, edi
jle 0x43a696
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.00439fa0
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x43a6c5
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.00439fa0
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x43a6fb
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.00439fa0
test edi, edi
jle 0x43a880
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x43a880
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 0x43a880
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x467458
lea edx, [esp + 0xc4]
push 0x200
push edx
call fcn.004414db
xor esi, esi
add esp, 0x28
lea ecx, [esp + 0x6c]
mov word [esp + 0x4a2], si
call fcn.0042bd40
mov dword [esp + 0x8b4], 4
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 0x43a7a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x3c]
call fcn.00406f80
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x74]
mov byte [esp + 0x8bc], 5
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x43a7f2
mov edx, dword [esp + 0x38]
push edx
call fcn.004415cb
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 0x43a816
lea edx, [esp + 0x70]
cmp dword [0x474bb0], eax
je 0x43a858
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a823
mov ecx, dword [0x474bb0]
sub eax, esi
sar eax, 1
push ecx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0x8b4], 0xffffffff
cmp dword [esp + 0x84], esi
jb 0x43a879
mov edx, dword [esp + 0x70]
push edx
call fcn.004415cb
add esp, 4
mov esi, dword [esp + 0x8c8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x43a8b6
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.00439fa0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x43aa44
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x43aa44
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 0x43aa44
push 1
push ebp
push edi
push ebp
push edi
push ebx
push esi
push 0x467500
lea eax, [esp + 0x4c4]
push 0x200
push eax
call fcn.004414db
xor esi, esi
add esp, 0x28
lea ecx, [esp + 0x88]
mov word [esp + 0x8a2], si
call fcn.0042bd40
mov dword [esp + 0x8b4], 6
lea eax, [esp + 0x4a4]
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 0x43a970
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a8]
push ecx
lea esi, [esp + 0x3c]
call fcn.00406f80
xor ebx, ebx
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x90]
mov byte [esp + 0x8bc], 7
call fcn.00406df0
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jb 0x43a9c6
mov eax, dword [esp + 0x38]
push eax
call fcn.004415cb
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 0x43a9ee
lea edx, [esp + 0x8c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x43aa2b
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43aa00
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0xa0], ebp
jb 0x43aa44
mov eax, dword [esp + 0x8c]
push eax
call fcn.004415cb
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.004414cc
add esp, 0x8a4
ret 0x24