Function at 0x410000
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45d54c
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48c]
mov edi, dword [esp + 0x490]
mov dword [esp + 0x18], eax
xor ebp, ebp
mov eax, ecx
mov ebx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
lea edx, [eax + 2]
jmp 0x410070
mov si, word [eax]
add eax, 2
cmp si, bp
jne 0x410070
sub eax, edx
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x28]
call fcn.00406f80
push 0xffffffffffffffff
lea ecx, [ebx + 0x38]
push ebp
mov eax, esi
mov dword [esp + 0x48c], ebp
mov dword [esp + 0x1c], ecx
call fcn.00406d10
mov dword [esp + 0x484], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4100c1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004415cb
add esp, 4
mov eax, edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4100d7
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x28]
call fcn.00406f80
push 0xffffffffffffffff
push ebp
lea ecx, [ebx + 0x70]
mov eax, esi
mov dword [esp + 0x48c], 1
call fcn.00406d10
mov dword [esp + 0x484], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x410128
mov edx, dword [esp + 0x24]
push edx
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0x494]
mov esi, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xf
and eax, 0xf0
mov dword [ebx + 8], ecx
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x14]
push 0x463588
mov edi, 0x33
mov ecx, esi
call fcn.00411070
test eax, eax
jne 0x41017a
push 6
push 0x462518
lea esi, [ebx + 0xa8]
call fcn.00406f80
mov esi, dword [esp + 0x14]
push 0x33
push 0x463588
jmp 0x4101d3
mov eax, dword [esi + 0x14]
push 0x4635f0
mov edi, 0x35
mov ecx, esi
call fcn.00411070
test eax, eax
jne 0x41019b
push 9
push 0x4623ac
jmp 0x410162
mov eax, dword [esi + 0x14]
push 0x463660
mov ecx, esi
call fcn.00411070
test eax, eax
lea esi, [ebx + 0xa8]
jne 0x4101cd
push 0xa
push 0x4636cc
call fcn.00406f80
mov esi, dword [esp + 0x14]
push 0x33
push 0x463588
jmp 0x4101d3
push ebp
push 0x46278c
call fcn.00406f80
call fcn.00406b70
cmp dword [eax + 0x74], ebp
jne 0x41031f
push str.GetBmpMessageBox____NULL
lea edx, [esp + 0x78]
push 0x200
push edx
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x58]
mov word [esp + 0x472], bp
call fcn.0042bd40
mov dword [esp + 0x484], 2
mov edi, 7
lea eax, [esp + 0x74]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x410232
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x44]
call fcn.00406f80
mov ecx, esi
push ebp
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x60]
mov byte [esp + 0x48c], 3
call fcn.00406df0
mov ebx, 8
cmp dword [esp + 0x54], ebx
jb 0x410280
mov edx, dword [esp + 0x40]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x70], ebx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], bp
jae 0x41029b
lea edx, [esp + 0x5c]
mov edi, dword [0x474bb0]
cmp edi, ebp
je 0x4102da
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4102b0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0x70], ebx
jb 0x4102ed
mov edx, dword [esp + 0x5c]
push edx
call fcn.004415cb
add esp, 4
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], ebx
jb 0x4102fb
mov eax, dword [eax + 4]
jmp 0x4102fe
add eax, 4
mov ecx, dword [esp + 0x494]
mov edx, dword [esp + 0x1c]
add ecx, 0x1000
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x41033c
mov ecx, dword [esp + 0x18]
mov edx, dword [0x474ef0]
push ebp
push 0x40f980
push ecx
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004414cc
add esp, 0x474
ret 0xc