Function at 0x452370
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x334
mov eax, dword [0x47e378]
xor eax, esp
mov dword [esp + 0x330], eax
mov eax, dword [esp + 0x338]
push ebx
push ebp
mov ebp, ecx
push edi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x10], edi
mov ecx, dword [eax + 8]
xor ebx, ebx
cmp ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
jle 0x452e0b
add eax, 0x41c
lea ebx, [ebx]
mov edx, dword [eax - 4]
test dl, 0xf
je 0x4523e7
cmp byte [eax], 1
jne 0x4523e2
add edi, 1
jmp 0x4523e7
add dword [esp + 0x1c], 1
test dl, 0xf0
je 0x4523fb
cmp byte [eax], 1
jne 0x4523f6
add ebx, 1
jmp 0x4523fb
add dword [esp + 0x14], 1
test edx, 0xf00
je 0x452414
cmp byte [eax], 1
jne 0x45240f
add dword [esp + 0x18], 1
jmp 0x452414
add dword [esp + 0xc], 1
test edx, 0xf000
je 0x45242d
cmp byte [eax], 1
jne 0x452428
add dword [esp + 0x20], 1
jmp 0x45242d
add dword [esp + 0x24], 1
add eax, 0x3c
sub ecx, 1
jne 0x4523d0
test edi, edi
jg 0x45246b
cmp dword [esp + 0x18], 0
jg 0x45246b
cmp dword [esp + 0x20], 0
jg 0x45246b
test ebx, ebx
jg 0x45246b
cmp dword [esp + 0x1c], 0
jg 0x45246b
cmp dword [esp + 0xc], 0
jg 0x45246b
cmp dword [esp + 0x24], 0
jg 0x45246b
cmp dword [esp + 0x14], 0
jle 0x452e0b
push esi
push 0x104
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004541e0
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x48]
push eax
push 0xfc9
push 0
call sub.hccutils.DLL_LoadSTRING
mov esi, dword [esp + 0x4c]
add esp, 0x20
lea ecx, [esp + 0x34]
push ecx
push esi
mov ecx, ebp
call fcn.0044f470
push 0
lea edx, [esp + 0x18]
push edx
push 2
push 0x46de54
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test edi, edi
jle 0x452544
push 0x104
lea eax, [esp + 0x13c]
push 0
push eax
call fcn.004541e0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [esp + 0x14c]
push edx
push 0xfca
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea eax, [esp + 0x58]
push 0
push eax
call fcn.004541e0
push edi
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0x64]
add esp, 0x38
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push edi
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push edi
call esi
test ebx, ebx
jle 0x4525ce
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
call fcn.004541e0
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0xfcb
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.004541e0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
lea edx, [esp + 0x168]
push edx
lea eax, [esp + 0x68]
push eax
call edi
mov ebx, dword [esp + 0x64]
add esp, 0x38
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push ebx
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push ebx
call esi
jmp 0x4525d8
mov ebx, dword [esp + 0x2c]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp dword [esp + 0x1c], 0
jle 0x452659
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
call fcn.004541e0
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0xfcc
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.004541e0
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x68]
push ecx
call edi
add esp, 0x38
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call esi
cmp dword [esp + 0x24], 0
jle 0x4526da
push 0x104
lea edx, [esp + 0x13c]
push 0
push edx
call fcn.004541e0
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x14c]
push ecx
push 0xfcd
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x58]
push 0
push edx
call fcn.004541e0
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x68]
push edx
call edi
add esp, 0x38
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push ebx
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push ebx
call esi
cmp dword [esp + 0x20], 0
jle 0x45275b
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
call fcn.004541e0
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0x1c06
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.004541e0
mov edx, dword [esp + 0x4c]
push edx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x68]
push ecx
call edi
add esp, 0x38
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call esi
cmp dword [esp + 0x18], 0
jle 0x4527dc
push 0x104
lea edx, [esp + 0x13c]
push 0
push edx
call fcn.004541e0
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x14c]
push ecx
push 0x1c07
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x58]
push 0
push edx
call fcn.004541e0
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x68]
push edx
call edi
add esp, 0x38
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push ebx
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x46de54
push ebx
call esi
cmp dword [esp + 0x10], 0
jle 0x45285d
push 0x104
lea ecx, [esp + 0x13c]
push 0
push ecx
call fcn.004541e0
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0x1c08
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.004541e0
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x68]
push ecx
call edi
add esp, 0x38
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push ebx
call esi
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4528df
push 0x104
lea edx, [esp + 0x13c]
push 0
push edx
call fcn.004541e0
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x14c]
push ecx
push 0x1c09
push 0
call sub.hccutils.DLL_LoadSTRING
push 0x104
lea edx, [esp + 0x58]
push 0
push edx
call fcn.004541e0
push ebx
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x68]
push ecx
call edi
mov edi, dword [esp + 0x64]
add esp, 0x38
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push edi
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x46de54
push edi
call esi
mov esi, dword [ebp + 0x114]
or edi, 0xffffffff
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
jle 0x452dee
jmp 0x452910
push 0x104
lea edx, [esp + 0x38]
push 0
push edx
call fcn.004541e0
add esp, 0xc
test byte [esi + ebx + 0x418], 1
je 0x452960
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfce
push 0
call sub.hccutils.DLL_LoadSTRING
mov esi, dword [esp + 0x2c]
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x18], esi
jle 0x452964
mov dword [esp + 0x10], esi
jmp 0x452964
mov esi, dword [esp + 0x18]
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 2
je 0x4529a0
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfce
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x18], esi
jle 0x4529a0
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 4
je 0x4529dc
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfce
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x18], esi
jle 0x4529dc
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 8
je 0x452a18
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfce
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x18], esi
jle 0x452a18
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 0x10
je 0x452a5a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd4
push 0
call sub.hccutils.DLL_LoadSTRING
mov esi, dword [esp + 0x34]
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x20], esi
jle 0x452a5e
mov dword [esp + 0x10], esi
jmp 0x452a5e
mov esi, dword [esp + 0x20]
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 0x20
je 0x452a9a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd4
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x20], esi
jle 0x452a9a
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 0x40
je 0x452ad6
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd4
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x20], esi
jle 0x452ad6
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test byte [ebx + edx + 0x418], 0x80
je 0x452b12
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd4
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x20], esi
jle 0x452b12
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x100
je 0x452b57
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd5
push 0
call sub.hccutils.DLL_LoadSTRING
mov esi, dword [esp + 0x30]
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x452b5b
mov dword [esp + 0x10], esi
jmp 0x452b5b
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x200
je 0x452b9a
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd5
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x452b9a
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x400
je 0x452bd9
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd5
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x452bd9
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x800
je 0x452c18
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd5
push 0
call sub.hccutils.DLL_LoadSTRING
add esi, 1
add esp, 0x14
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x452c18
mov dword [esp + 0x10], esi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x1000
je 0x452c57
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd6
push 0
call sub.hccutils.DLL_LoadSTRING
add edi, 1
add esp, 0x14
test edi, edi
mov dword [esp + 0x24], edi
jle 0x452c57
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x2000
je 0x452c96
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd6
push 0
call sub.hccutils.DLL_LoadSTRING
add edi, 1
add esp, 0x14
test edi, edi
mov dword [esp + 0x24], edi
jle 0x452c96
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x4000
je 0x452cd5
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd6
push 0
call sub.hccutils.DLL_LoadSTRING
add edi, 1
add esp, 0x14
test edi, edi
mov dword [esp + 0x24], edi
jle 0x452cd5
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x114]
test dword [ebx + edx + 0x418], 0x8000
je 0x452d14
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0xfd6
push 0
call sub.hccutils.DLL_LoadSTRING
add edi, 1
add esp, 0x14
test edi, edi
mov dword [esp + 0x24], edi
jle 0x452d14
mov dword [esp + 0x10], edi
lea eax, [esp + 0x34]
lea edx, [eax + 1]
jmp 0x452d20
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x452d20
sub eax, edx
je 0x452dac
cmp dword [esp + 0x10], 0
jle 0x452dac
lea edi, [esp + 0x34]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x452d40
mov eax, dword [esp + 0x10]
mov dx, word [0x46c9ec]
push eax
lea ecx, [esp + 0x240]
push 0x46ca74
push ecx
mov word [edi], dx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x248]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x452d78
lea edi, [esp + 0x34]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x452d90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
push esi
mov ecx, ebp
call fcn.0044f470
mov eax, dword [ebp + 0x114]
mov ecx, dword [ebx + eax + 0x418]
push ecx
push esi
mov ecx, ebp
call fcn.00451780
add dword [esp + 0x28], 1
mov esi, dword [ebp + 0x114]
mov edx, dword [esp + 0x28]
add ebx, 0x3c
cmp edx, dword [esi + 8]
jl 0x452910
xor eax, eax
pop esi
mov ecx, dword [esp + 0x33c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454162
add esp, 0x334
ret 4
xor eax, eax
jmp 0x452df1