Function at 0x4339b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x160
push ebx
mov ebx, dword [esp + 0x168]
push esi
cmp ebx, 0xffffffff
mov dword [esp + 0x4c], 0
mov esi, 1
je 0x4339d7
mov dword [esp + 0x4c], esi
jmp 0x4339fb
lea eax, [esp + 0x16c]
push eax
call fcn.004337d0
add esp, 4
test eax, eax
jne 0x4339f4
pop esi
pop ebx
add esp, 0x160
ret
mov ebx, dword [esp + 0x16c]
push ebp
cmp ebx, 0xffffffff
push edi
mov dword [esp + 0x58], esi
je 0x434ca7
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, 0x4520d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4520d8
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x38]
push 2
push eax
push ebx
mov dword [esp + 0x44], 0xa
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x4f4]
or ecx, 0xffffffff
mov eax, dword [edx + 0x34]
lea edx, [esp + 0x30]
mov edi, dword [eax + 0x80]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
push eax
push ecx
push 2
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov edx, dword [0x452594]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [edx + 0x4f4]
and ecx, 0xffff
push ecx
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + 0x80]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov ecx, dword [0x452594]
lea eax, [esp + 0x10]
push 0
push eax
add ecx, 0x400
push 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov edx, dword [0x452594]
push 0
mov eax, dword [edx + 0x18]
lea edx, [esp + 0x14]
push edx
push 2
mov cx, word [eax + 0x1f0]
lea eax, [esp + 0x3c]
push eax
push ebx
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
push 0x68
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x452594]
mov esi, eax
add esp, 4
mov dl, byte [ecx + 0x26]
mov byte [esi], dl
mov eax, dword [0x452594]
mov cl, byte [eax + 0x27]
mov byte [esi + 1], cl
mov edx, dword [0x452594]
mov ax, word [edx + 0x28]
mov word [esi + 2], ax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0xb0]
mov dword [esi + 4], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0xb4]
mov dword [esi + 8], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0xd0]
mov dword [esi + 0xc], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0xd4]
mov dword [esi + 0x10], edx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0xd8]
sub edx, eax
mov dword [esi + 0x14], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x110]
mov dword [esi + 0x18], ecx
mov edx, dword [0x452594]
mov ax, word [edx + 0x14c]
mov word [esi + 0x1c], ax
mov ecx, dword [0x452594]
mov dx, word [ecx + 0x18c]
mov word [esi + 0x1e], dx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x190]
mov dword [esi + 0x20], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x194]
mov dword [esi + 0x24], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x19c]
mov dword [esi + 0x28], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x1a0]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x1b4]
mov dword [esi + 0x30], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1b8]
mov dword [esi + 0x34], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x1bc]
mov dword [esi + 0x38], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x1c0]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c4]
mov dword [esi + 0x40], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x1c8]
mov dword [esi + 0x44], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x1cc]
mov dword [esi + 0x48], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1d0]
mov dword [esi + 0x4c], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x4d8]
mov dword [esi + 0x50], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x4dc]
mov dword [esi + 0x54], eax
mov ecx, dword [0x452594]
push 0
mov edx, dword [ecx + 0x4e0]
mov dword [esi + 0x58], edx
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x504]
mov dword [esi + 0x5c], ecx
mov edx, dword [0x452594]
mov eax, dword [edx + 0x508]
mov dword [esi + 0x60], eax
mov ecx, dword [0x452594]
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0x50c]
push eax
push 0x68
push esi
push ebx
mov dword [esi + 0x64], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
push esi
call dword [sym.imp.MSVCRT.dll_free]
push 0x2c
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x452594]
mov esi, eax
add esp, 8
mov edx, dword [ecx + 0x1c]
push 0
mov eax, dword [edx + 0x1c]
mov dword [esi], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x24]
mov dword [esi + 8], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x28]
mov dword [esi + 0xc], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
mov dword [esi + 0x10], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
mov ecx, dword [0x452594]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 8]
mov dword [esi + 0x28], eax
mov ecx, dword [0x452594]
lea eax, [esi + 0x18]
mov edx, dword [ecx + 0x1c]
add edx, 0x34
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x14]
push eax
push 0x2c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
push esi
call dword [sym.imp.MSVCRT.dll_free]
push 0x1c
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [0x452594]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
xor edi, edi
mov eax, dword [ecx + 0x1c]
add esp, 8
mov dword [esp + 0x18], edi
cmp dword [eax + 0x2c], edi
jle 0x433e39
mov eax, dword [eax + 0x30]
push 0
add eax, edi
mov edx, dword [eax + 4]
mov dword [esi], edx
mov ecx, dword [eax + 8]
mov dword [esi + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x2c]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x30]
mov dword [esi + 0x14], ecx
mov edx, dword [eax + 0x34]
lea eax, [esp + 0x14]
mov dword [esi + 0x18], edx
push eax
push 0x1c
push esi
push ebx
call ebp
test eax, eax
je 0x433e39
mov edx, dword [0x452594]
mov ecx, dword [esp + 0x18]
inc ecx
add edi, 0x54
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x2c]
jl 0x433de0
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x452594]
add esp, 4
lea eax, [esp + 0x10]
mov edx, dword [ecx + 0x18]
push 0
push eax
push 0x10
mov eax, dword [edx + 0x25c]
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
mov edx, dword [0x452594]
lea ecx, [esp + 0x10]
push 0
push ecx
mov eax, dword [edx + 0x18]
push 0x10
mov ecx, dword [eax + 0x258]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov eax, dword [0x452594]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax + 0x18]
push 4
add ecx, 0x264
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov ecx, dword [0x452594]
xor ebp, ebp
mov esi, 1
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x264]
test edx, edx
jle 0x433f03
xor edi, edi
mov eax, dword [eax + 0x268]
add eax, edi
push eax
push ebx
call fcn.00433710
mov esi, eax
add esp, 8
test esi, esi
je 0x434ca7
mov ecx, dword [0x452594]
inc ebp
add edi, 0x10
mov eax, dword [ecx + 0x18]
cmp ebp, dword [eax + 0x264]
jl 0x433ed2
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x10]
push 0
push edx
add eax, 0x278
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov eax, dword [0x452594]
mov dword [esp + 0x18], 0
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x278]
test edx, edx
jle 0x433fcf
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x27c]
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x433f6d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x34]
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x434ca7
mov eax, dword [esp + 0x2c]
test ax, ax
jle 0x433fb2
movsx edx, ax
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x434ca7
mov eax, dword [0x452594]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
cmp ecx, dword [edx + 0x278]
jl 0x433f42
test esi, esi
je 0x434cac
mov dword [esp + 0x48], 0
call fcn.00423cf0
test eax, eax
je 0x434000
mov esi, 2
cmp word [eax + 2], si
jb 0x433ff7
inc dword [esp + 0x48]
call fcn.00423ca0
test eax, eax
jne 0x433fed
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x50]
push 4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov edx, dword [0x452594]
xor esi, esi
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x1278]
test ecx, ecx
jle 0x434060
cmp dword [eax], 0
jne 0x434048
mov ecx, dword [eax + 8]
add eax, 8
test ecx, ecx
je 0x43403e
mov ecx, dword [eax]
add eax, 8
cmp word [ecx + 0x1a], 0
jne 0x434058
dec dword [esp + 0x3c]
mov ecx, dword [edx + 0x3c]
inc esi
cmp esi, ecx
jl 0x434039
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x44]
push 4
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434ca7
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x4c
call esi
push 0x5c
mov dword [esp + 0x58], eax
call esi
push 0x74
mov dword [esp + 0x68], eax
call esi
push 0x50
mov dword [esp + 0x48], eax
call esi
push 0x24
mov dword [esp + 0x38], eax
call esi
push 0x50
mov dword [esp + 0x34], eax
call esi
mov ecx, dword [0x452594]
mov dword [esp + 0x38], eax
xor eax, eax
add esp, 0x18
mov edx, dword [ecx + 0x1278]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x3c]
cmp edx, eax
mov dword [esp + 0x64], eax
jle 0x4347d9
mov eax, dword [esp + 0x2c]
cmp dword [eax], 0
jne 0x4340f2
mov edx, dword [eax + 8]
add eax, 8
test edx, edx
je 0x4340e4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
mov ebp, dword [eax]
add eax, 8
mov dword [esp + 0x2c], eax
cmp word [ebp + 0x1a], di
je 0x4347c5
mov esi, dword [esp + 0x50]
mov ax, word [ebp]
push edi
mov dword [esp + 0x38], 1
mov word [esi], ax
mov cx, word [ebp + 0x10]
mov word [esi + 2], cx
mov dx, word [ebp + 0x12]
mov word [esi + 4], dx
mov ax, word [ebp + 0x1a]
mov word [esi + 6], ax
mov ecx, dword [ebp + 0x48]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 0x4c]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x54]
mov dword [esi + 0x14], ecx
mov edx, dword [ebp + 0x58]
mov dword [esi + 0x18], edx
mov eax, dword [ebp + 0x5c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp + 0x60]
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x64]
lea eax, [ebp + 0x68]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0x78]
mov dword [esi + 0x38], ecx
mov dx, word [ebp + 0x7c]
mov word [esi + 0x3c], dx
mov eax, dword [ebp + 0x84]
lea edx, [esp + 0x14]
mov dword [esi + 0x40], eax
mov ecx, dword [ebp + 0xb4]
push edx
push 0x4c
push esi
push ebx
mov dword [esi + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov dword [esp + 0x44], edi
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x4341e1
cmp dword [eax], edi
je 0x4341d6
mov ecx, dword [eax + 4]
add eax, 4
cmp ecx, edi
jne 0x4341cc
sub ax, word [ebp + 0x2c]
add eax, 4
mov dword [esp + 0x44], eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x4c]
push 2
push ecx
push ebx
call esi
test eax, eax
je 0x4347d9
mov eax, dword [esp + 0x44]
cmp ax, di
jbe 0x434223
lea edx, [esp + 0x10]
push edi
and eax, 0xffff
push edx
push eax
mov eax, dword [ebp + 0x2c]
push eax
push ebx
call esi
test eax, eax
je 0x4347d9
test dword [ebp + 0x78], 0x230
je 0x43436d
mov esi, dword [esp + 0x5c]
mov ecx, dword [ebp + 0xc8]
mov dword [esi + 4], ecx
mov edx, dword [ebp + 0xcc]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xd8]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0xdc]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp + 0xe0]
mov dword [esi + 0x14], edx
mov eax, dword [ebp + 0xe4]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0xe8]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0xec]
mov dword [esi + 0x20], edx
mov eax, dword [ebp + 0xf0]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp + 0xf4]
mov dword [esi + 0x28], ecx
mov edx, dword [ebp + 0xf8]
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0x104]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp + 0x108]
mov dword [esi + 0x34], ecx
mov edx, dword [ebp + 0x10c]
mov dword [esi + 0x38], edx
mov eax, dword [ebp + 0x110]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp + 0x114]
mov dword [esi + 0x40], ecx
mov edx, dword [ebp + 0x118]
mov dword [esi + 0x44], edx
mov eax, dword [ebp + 0x11c]
mov dword [esi + 0x48], eax
mov ecx, dword [ebp + 0x120]
mov dword [esi + 0x4c], ecx
mov edx, dword [ebp + 0x120]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x128]
cmp eax, edi
je 0x434304
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
inc eax
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x12c]
cmp eax, edi
je 0x43431a
mov eax, dword [eax]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
inc eax
mov dword [esi + 0x58], eax
mov word [esi], di
mov eax, dword [ebp + 0xc0]
cmp eax, 0x4218b0
jne 0x43432f
mov word [esi], 1
mov word [esi + 2], di
mov eax, dword [ebp + 0xc4]
cmp eax, 0x421790
jne 0x434348
mov word [esi + 2], 1
jmp 0x434355
cmp eax, 0x4218b0
jne 0x434355
mov word [esi + 2], 2
lea eax, [esp + 0x10]
push edi
push eax
push 0x5c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
test byte [ebp + 0x78], 0x10
je 0x43447d
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x130]
lea esi, [ebp + 0x17e]
mov dword [eax], ecx
mov edx, dword [ebp + 0x134]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x140]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x14c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x150]
mov dword [eax + 0x10], ecx
mov dx, word [ebp + 0x154]
mov word [eax + 0x14], dx
mov ecx, dword [ebp + 0x172]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x176]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 0x17a]
lea edx, [eax + 0x24]
mov dword [eax + 0x20], ecx
mov ecx, 0x14
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xcc]
cmp ecx, 5
je 0x434428
cmp ecx, 9
je 0x43440c
cmp ecx, 0xd
jne 0x434439
mov ecx, dword [edx]
mov dword [eax + 0x20], 0xffffffff
test ecx, ecx
je 0x434439
mov edx, dword [eax + 0x28]
movsx ecx, word [edx]
mov dword [eax + 0x28], ecx
jmp 0x434439
mov ecx, dword [ebp + 0x1b2]
test ecx, ecx
je 0x43441f
movsx edx, word [ecx]
inc edx
mov dword [eax + 0x58], edx
jmp 0x434439
mov dword [eax + 0x58], 0
jmp 0x434439
mov ecx, dword [ebp + 0x1a2]
mov edx, dword [ebp + 0x1aa]
sub ecx, edx
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x10]
push 0
push edx
push 0x74
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
cmp dword [ebp + 0xcc], 0xe
jne 0x43447d
mov ecx, dword [ebp + 0xd0]
test ecx, ecx
je 0x43447d
mov edx, dword [ecx]
push ebx
push 0x1010
push ebp
call dword [edx + 0x54]
test eax, eax
je 0x4347d9
test byte [ebp + 0x78], 0x20
je 0x4344ed
mov eax, dword [ebp + 0xb8]
mov edx, dword [esp + 0x24]
add eax, ebp
mov ecx, 0x14
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x14]
mov esi, dword [ebp + 0x44]
test ecx, ecx
je 0x4344b3
xor edi, edi
mov di, word [esi + 6]
sub ecx, edi
sub ecx, esi
mov dword [edx + 0x14], ecx
jmp 0x4344ba
mov dword [edx + 0x14], 0
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4344c9
sub ecx, dword [eax + 0x14]
mov dword [edx + 0x20], ecx
jmp 0x4344d0
mov dword [edx + 0x20], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push 0
push eax
push 0x50
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov eax, dword [ebp + 0x78]
test ah, 2
je 0x434523
mov esi, dword [ebp + 0xbc]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push 0
push edx
add esi, ebp
mov ecx, 9
mov edi, eax
push 0x24
push eax
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov eax, dword [ebp + 0x78]
test ah, 1
je 0x434612
mov eax, dword [ebp + 0x80]
add eax, ebp
xor edi, edi
mov dword [esp + 0x60], eax
mov esi, dword [eax]
push esi
push ebx
call fcn.00433710
add esp, 8
test eax, eax
je 0x4347d9
inc edi
add esi, 0x10
cmp edi, 0x1a
jl 0x43453f
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], 0
add eax, 0x86
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], 0
mov esi, dword [ecx]
test esi, esi
je 0x434590
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x40], ecx
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x48]
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov ecx, dword [esp + 0x40]
test cx, cx
jle 0x4345d1
movsx eax, cx
lea edx, [esp + 0x10]
push 0
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
inc ecx
add esi, 4
cmp ecx, 0xa
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], esi
jl 0x43456f
test eax, eax
je 0x4347d9
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x10]
push 0
push ecx
add edx, 0x68
push 4
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov ax, word [ebp + 0x18]
cmp ax, 3
je 0x43463e
cmp ax, 4
je 0x43463e
cmp ax, 5
je 0x43463e
cmp ax, 6
je 0x43463e
cmp ax, 7
je 0x43463e
cmp ax, 9
jne 0x43470c
mov eax, dword [esp + 0x20]
mov ecx, 0x14
lea esi, [ebp + 0x1f2]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp word [ebp + 0x18], 9
jne 0x43465f
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
push 0x50
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov ax, word [ebp + 0x18]
cmp ax, 3
jne 0x4346f4
mov edi, dword [ebp + 0x22e]
mov dword [esp + 0x18], 0
test edi, edi
push 0
je 0x4346df
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 2
not ecx
push eax
push ebx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
movsx edx, word [esp + 0x18]
mov eax, dword [ebp + 0x22e]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x434704
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 2
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x434704
cmp ax, 9
jne 0x43470c
push ebx
push ebp
call fcn.00441330
add esp, 8
test eax, eax
je 0x4347d9
cmp word [ebp + 0x18], 8
jne 0x434722
push ebx
push ebp
call fcn.00437bf0
test eax, eax
je 0x4347d9
mov ax, word [ebp + 0x18]
cmp ax, 0x20
jl 0x4347b7
movsx eax, ax
push 0
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*8]
mov eax, dword [0x45258c]
mov ecx, dword [eax + 0xe0]
lea eax, [esp + 0x14]
push eax
push 4
mov edx, dword [ecx + edx*2 - 0x11b4]
lea ecx, [esp + 0x74]
push ecx
push ebx
mov dword [esp + 0x7c], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
movsx eax, word [ebp + 0x18]
mov ecx, dword [0x452594]
push 0
lea edx, [eax + eax*8]
lea eax, [eax + edx*8]
mov edx, dword [ecx + 0x1d4]
lea ecx, [esp + 0x14]
mov esi, dword [edx + eax*2 - 0x11dc]
push ecx
test esi, esi
lea edx, [esp + 0x33]
push 1
setne al
push edx
push ebx
mov byte [esp + 0x3f], al
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347d9
mov al, byte [esp + 0x2b]
test al, al
je 0x4347b7
push ebx
push ebp
call esi
test eax, eax
je 0x4347d9
mov ecx, dword [0x452594]
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x64]
mov edx, dword [ecx + 0x3c]
inc eax
cmp eax, edx
mov dword [esp + 0x64], eax
jl 0x4340db
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
mov ecx, dword [esp + 0x60]
push ecx
call esi
mov edx, dword [esp + 0x40]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
mov eax, dword [esp + 0x4c]
add esp, 0x18
test eax, eax
jne 0x434ca7
mov eax, dword [0x452594]
mov ecx, dword [eax + 0x3c]
add ecx, ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esp + 0x28], eax
mov eax, dword [0x452594]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], 0
mov ecx, dword [edx + 0x2c]
test ecx, ecx
jle 0x4348f5
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edi, dword [esp + 0x24]
push 0
push ecx
push edx
call sub.MMFS2.dll_Ordinal_819
mov esi, eax
test esi, esi
je 0x43489e
mov eax, dword [0x452594]
push esi
mov ecx, dword [eax]
push ecx
call sub.MMFS2.dll_Ordinal_77
cmp word [eax + 0x1a], 0
je 0x434888
mov dx, word [eax]
mov word [edi], dx
add edi, 2
mov eax, dword [0x452594]
push 2
push esi
mov ecx, dword [eax]
push ecx
call sub.MMFS2.dll_Ordinal_820
mov esi, eax
test esi, esi
jne 0x43486a
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x24]
push 4
sub edi, esi
push eax
push ebx
mov dword [esp + 0x30], edi
call ebp
test eax, eax
je 0x4348ed
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
push ebx
call ebp
test eax, eax
je 0x4348ed
mov eax, dword [0x452594]
mov ecx, dword [esp + 0x20]
inc ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
cmp ecx, dword [edx + 0x2c]
jl 0x434851
jmp 0x4348f5
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x434ca7
mov esi, dword [0x452594]
mov ecx, dword [esi + 0x58]
mov eax, ecx
cmp word [eax], 0xffff
je 0x434929
add eax, 0x76
cmp word [eax], 0xffff
jne 0x434920
sub eax, ecx
mov ecx, eax
mov eax, 0x22b63cbf
imul ecx
mov eax, dword [esi + 0x3c]
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add eax, edx
lea ecx, [eax + eax + 2]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [0x452594]
add esp, 4
mov esi, eax
mov edx, dword [edx + 0x58]
mov ecx, esi
cmp word [edx], 0xffff
je 0x4349af
mov ax, word [edx + 6]
test ax, ax
jl 0x43499e
mov word [ecx], ax
mov edi, dword [0x452594]
and eax, 0xffff
add ecx, 2
mov edi, dword [edi + 0x1278]
mov eax, dword [edi + eax*8]
test eax, eax
je 0x43499e
cmp word [eax + 0x1a], 0
jne 0x434995
sub ecx, 2
mov ax, word [eax + 0x16]
test ax, ax
jge 0x43496d
add edx, 0x76
mov word [ecx], 0xffff
add ecx, 2
cmp word [edx], 0xffff
jne 0x434964
sub ecx, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4349ea
lea edx, [esp + 0x10]
push 0
push edx
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x434ca7
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x45258c]
add esp, 4
lea edx, [esp + 0x10]
mov esi, dword [eax + 0x284]
push 0
lea eax, [esp + 0x18]
push edx
push 4
push eax
test esi, esi
mov dword [esp + 0x2c], esi
push ebx
je 0x434b50
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esi]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x434b62
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + ecx*4 + 8]
test esi, esi
je 0x434b37
lea edi, [esi + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [esi]
push 0
imul eax, dword [esi + 4]
not ecx
dec ecx
push edx
push 4
lea ecx, [ecx + eax + 0xd]
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x28], ecx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x434aa0
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x434ca7
cmp dword [esi + 4], 0xc
jne 0x434b37
mov eax, dword [esi]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x434b37
mov edx, dword [esi + 4]
lea edi, [esi + 8]
imul edx, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, esi
add eax, ecx
push 0
mov edi, dword [edx + eax + 9]
lea eax, [edx + eax + 9]
lea edx, [esp + 0x14]
push edx
push 4
test edi, edi
je 0x434b10
mov ecx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x28], ecx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x434b28
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
jmp 0x434b1d
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x434ab8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc eax
mov edx, dword [ecx]
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x434a3c
jmp 0x434b62
mov dword [esp + 0x28], 0
call ebp
test eax, eax
je 0x434ca7
mov ecx, dword [0x452590]
mov edx, dword [ecx + 0x80]
mov eax, edx
mov cx, word [eax]
test cx, cx
je 0x434b85
movsx ecx, cx
sub eax, ecx
mov cx, word [eax]
test cx, cx
jne 0x434b78
sub eax, edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x434c86
mov ecx, dword [0x452590]
mov edi, dword [ecx + 0x80]
cmp word [edi], 0
je 0x434c86
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 4]
push 2
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [edi + 6]
push 2
push edx
push ebx
call ebp
test eax, eax
je 0x434ca7
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + 8]
push 2
push ecx
push ebx
call ebp
test eax, eax
je 0x434ca7
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 0xa]
push 2
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
xor eax, eax
xor ecx, ecx
mov al, byte [edi + 3]
mov cl, byte [edi + 2]
add eax, ecx
lea esi, [edi + 0xe]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x434c77
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esi + 0xa]
push 1
push eax
push ebx
call ebp
test eax, eax
je 0x434ca7
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0xb]
push 1
push edx
push ebx
call ebp
test eax, eax
je 0x434ca7
movsx eax, word [esi]
add esi, eax
mov eax, dword [esp + 0x1c]
dec eax
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x434c3d
movsx ecx, word [edi]
sub edi, ecx
cmp word [edi], 0
jne 0x434bc6
xor esi, esi
lea edx, [esp + 0x10]
push esi
push edx
lea eax, [esp + 0x74]
push 4
push eax
push ebx
mov dword [esp + 0x80], esi
call ebp
test eax, eax
je 0x434ca7
mov dword [esp + 0x58], esi
mov eax, dword [0x452594]
mov ecx, dword [esp + 0x54]
pop edi
test ecx, ecx
pop ebp
jne 0x434cc7
cmp ebx, 0xffffffff
je 0x434cc7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x452594]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x434d21
mov edx, dword [0x452558]
lea ecx, [esp + 0x68]
push 0x100
push ecx
push 0x8c
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x452594]
push 0x30
mov ecx, dword [eax + 0x4f4]
mov eax, dword [eax + 0xc]
mov edx, dword [ecx + 0x34]
mov ecx, dword [edx + 0x80]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x160
ret
mov ecx, dword [eax + 0xd0]
mov dword [eax + 0x43c], ecx
xor eax, eax
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x160
ret