Function at 0x451780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x534
mov eax, dword [0x47e378]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
mov ebx, dword [esp + 0x53c]
push esi
push edi
xor esi, esi
push 0x104
lea eax, [esp + 0x234]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x1c], esi
call fcn.004541e0
mov ecx, dword [edi + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x244]
push edx
push 0xba7
push esi
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea eax, [esp + 0x358]
push esi
push eax
call fcn.004541e0
mov ecx, dword [edi + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x368]
push edx
push 0xfcf
push esi
call sub.hccutils.DLL_LoadSTRING
add esp, 0x40
push 0x104
lea eax, [esp + 0x43c]
push esi
push eax
call fcn.004541e0
mov ecx, dword [edi + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x44c]
push edx
push 0xfd0
push esi
call sub.hccutils.DLL_LoadSTRING
mov eax, dword [edi + 0x114]
add esp, 0x20
cmp dword [eax + 8], esi
mov dword [esp + 0x20], esi
jle 0x45234d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], esi
jmp 0x451860
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx + 0x418]
cmp edx, dword [esp + 0x54c]
jne 0x45232d
push 0x104
lea eax, [esp + 0x134]
push 0
push eax
call fcn.004541e0
mov ecx, dword [edi + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x144]
push edx
push 0xfd3
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.004541e0
mov ecx, dword [edi + 0x114]
mov esi, dword [esp + 0x44]
lea eax, [ecx + esi + 0x444]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x4518f8
mov edx, eax
cmp dword [edx + 4], 0
jne 0x4518ef
mov ecx, dword [eax]
push ecx
call fcn.00453640
mov edx, dword [esp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
jmp 0x4518fa
xor eax, eax
push eax
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea ecx, [esp + 0x134]
push 0
push ecx
call fcn.004541e0
mov edx, dword [edi + 0xc]
push edx
push 0x104
lea eax, [esp + 0x144]
push eax
push 0xfd7
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.004541e0
mov edx, dword [edi + 0x114]
lea eax, [edx + esi + 0x420]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x4519ae
cmp dword [eax + 4], 0
jne 0x4519a5
mov ecx, eax
mov edx, dword [ecx]
push edx
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
jmp 0x4519b0
xor eax, eax
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfde
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
lea eax, [eax + esi + 0x430]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x451a66
mov ecx, eax
cmp dword [ecx + 4], 0
jne 0x451a5d
mov edx, eax
mov eax, dword [edx]
push eax
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
jmp 0x451a68
xor eax, eax
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfd8
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
lea eax, [eax + esi + 0x438]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x451b1e
mov ecx, eax
cmp dword [ecx + 4], 0
jne 0x451b15
mov edx, eax
mov eax, dword [edx]
push eax
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
jmp 0x451b20
xor eax, eax
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfdd
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
lea eax, [eax + esi + 0x43c]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x451bd6
mov ecx, eax
cmp dword [ecx + 4], 0
jne 0x451bcd
mov edx, eax
mov eax, dword [edx]
push eax
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
jmp 0x451bd8
xor eax, eax
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfdc
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
lea eax, [eax + esi + 0x440]
mov eax, dword [eax]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x10], eax
je 0x451c8e
mov ecx, eax
cmp dword [ecx + 4], 0
jne 0x451c85
mov edx, eax
mov eax, dword [edx]
push eax
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
jmp 0x451c90
xor eax, eax
push eax
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfe0
push 0
call sub.hccutils.DLL_LoadSTRING
add esp, 0x20
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x13c]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
mov edx, dword [edi + 0x114]
lea eax, [edx + esi + 0x448]
mov eax, dword [eax]
test eax, eax
je 0x451e62
mov eax, dword [eax]
test eax, eax
je 0x451e62
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x451e62
mov eax, dword [edi + 0x114]
lea esi, [eax + esi + 0x448]
mov esi, dword [esi]
test esi, esi
je 0x451d7d
cmp dword [esi + 4], 0
jne 0x451d78
mov ecx, dword [esi]
push ecx
call fcn.00453640
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x451d7f
xor eax, eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x451d82
sub eax, edx
add eax, 1
push eax
call fcn.0045349c
mov edx, dword [edi + 0x114]
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x1c]
lea eax, [edx + eax + 0x448]
mov eax, dword [eax]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x451ddc
mov ecx, eax
cmp dword [ecx + 4], 0
jne 0x451dd3
mov edx, eax
mov eax, dword [edx]
push eax
call fcn.00453640
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
jmp 0x451dde
xor ecx, ecx
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x451de2
cmp dword [esp + 0x1c], 0
je 0x451e53
push 0x2c
push esi
mov dword [esp + 0x18], esi
call fcn.00454de0
mov esi, eax
add esp, 8
test esi, esi
je 0x451e1c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
test eax, eax
mov byte [esi], 0
je 0x451e1c
mov esi, eax
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x451e23
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
mov edx, dword [esp + 0x18]
push eax
push edx
push ebx
call ebp
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push ebx
call ebp
test esi, esi
jne 0x451df7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00453c8b
add esp, 4
jmp 0x451e79
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x240]
push ecx
push ebx
call ebp
push 0x104
lea edx, [esp + 0x30]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x40]
push ecx
push 0xfdf
push 0
call sub.hccutils.DLL_LoadSTRING
add esp, 0x20
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfdb
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
mov ecx, dword [esp + 0x44]
mov esi, dword [eax + ecx + 0x424]
lea eax, [eax + ecx + 0x424]
add esp, 0x2c
test esi, esi
je 0x451f3f
cmp dword [esi + 4], 0
jne 0x451f3a
mov edx, dword [esi]
push edx
call fcn.00453640
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x451f41
xor esi, esi
push esi
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfda
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
mov ecx, dword [esp + 0x44]
mov esi, dword [eax + ecx + 0x428]
lea eax, [eax + ecx + 0x428]
add esp, 0x2c
test esi, esi
je 0x451ff0
cmp dword [esi + 4], 0
jne 0x451feb
mov edx, dword [esi]
push edx
call fcn.00453640
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x451ff2
xor esi, esi
push esi
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
push 0x104
lea edx, [esp + 0x134]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x144]
push ecx
push 0xfd9
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x50]
push 0
push edx
call fcn.004541e0
mov eax, dword [edi + 0x114]
mov ecx, dword [esp + 0x44]
mov esi, dword [eax + ecx + 0x42c]
lea eax, [eax + ecx + 0x42c]
add esp, 0x2c
test esi, esi
je 0x4520a1
cmp dword [esi + 4], 0
jne 0x45209c
mov edx, dword [esi]
push edx
call fcn.00453640
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
jmp 0x4520a3
xor esi, esi
push esi
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
push esi
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push esi
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], esi
call fcn.00412970
add esp, 8
cmp dword [esp + 0x28], 0xe
jne 0x45232d
cmp dword [esp + 0x20], 0x1d
jb 0x45232d
cmp byte [edi + 8], 1
jne 0x45232d
mov esi, dword [edi + 0x114]
mov ecx, dword [esp + 0x18]
cmp byte [esi + ecx + 0x41c], 0
je 0x45232d
push 0x104
lea edx, [esp + 0x30]
push 0
push edx
mov dword [esp + 0x28], 0
call fcn.004541e0
push 0x114
push 0
add esi, 0x838
push esi
call fcn.004541e0
mov eax, dword [edi + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x4c]
push ecx
push 0x1c05
push 0
call sub.hccutils.DLL_LoadSTRING
add esp, 0x2c
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
mov edx, dword [edi + 0x114]
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x948], 0
mov eax, dword [edi + 0x114]
mov edx, dword [ecx + eax + 0x418]
mov dword [eax + 0x93c], edx
mov eax, dword [edi + 0x114]
cmp dword [eax + 0x948], 0
jne 0x45232d
mov ecx, dword [edi + 0x114]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x838], 1
mov edx, dword [edi + 0x114]
mov dword [edx + 0x940], eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x114]
cmp dword [eax + 0x940], 0
jne 0x452217
cmp dword [eax + 0x944], 0
je 0x452316
mov edx, dword [eax + 0x944]
shl edx, 7
lea ecx, [eax + 0x83c]
je 0x4522fc
mov eax, 0xfffffff2
sub eax, ecx
lea esi, [ecx + 0xe]
mov dword [esp + 0x10], eax
lea ebx, [ebx]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
movzx edx, byte [esi - 1]
push eax
movzx eax, byte [esi - 2]
push ecx
movzx ecx, byte [esi - 3]
push edx
movzx edx, byte [esi - 4]
push eax
movzx eax, byte [esi - 5]
push ecx
movzx ecx, byte [esi - 6]
push edx
movzx edx, byte [esi - 7]
push eax
movzx eax, byte [esi - 8]
push ecx
movzx ecx, byte [esi - 9]
push edx
movzx edx, byte [esi - 0xa]
push eax
movzx eax, byte [esi - 0xb]
push ecx
movzx ecx, byte [esi - 0xc]
push edx
movzx edx, byte [esi - 0xd]
push eax
movzx eax, byte [esi - 0xe]
push ecx
push edx
push eax
lea ecx, [esp + 0x6c]
push str._.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x__.2x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x74]
add esp, 0x48
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4522b0
push 0
lea edx, [esp + 0x18]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
call ebp
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call ebp
mov edx, dword [edi + 0x114]
mov eax, dword [edx + 0x944]
mov ecx, dword [esp + 0x10]
add esi, 0x10
shl eax, 7
add ecx, esi
cmp ecx, eax
jb 0x452240
mov edx, dword [edi + 0x114]
add dword [esp + 0x1c], 1
cmp dword [edx + 0x948], 0
je 0x4521d1
jmp 0x45232d
push 0
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x240]
push ecx
push ebx
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x114]
add dword [esp + 0x18], 0x3c
add ecx, 1
cmp ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
jl 0x451860
pop ebp
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00454162
add esp, 0x534
ret 8