Function at 0x437e1c
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 3], dl
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x438c8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffffe
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [0x4be784]
mov al, byte [eax + 0x18b1]
cmp al, 6
jb 0x437e6a
mov edx, dword [0x4be784]
cmp al, 0xb
jbe 0x437e78
mov edx, dword [0x4be784]
cmp al, 0xe
jae 0x437e78
xor ebx, ebx
jmp 0x437e7a
mov bl, 1
movsx eax, word [ebp - 2]
mov edx, dword [0x4be754]
mov eax, dword [edx + eax*4 - 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x438], 0
jne 0x438c76
mov eax, dword [ebp - 0x5c]
fild qword [eax + 0x14c]
mov eax, dword [ebp - 0x5c]
fild qword [eax + 0x144]
fsubp st(1)
call fcn.004028e8
add eax, 1
adc edx, 0
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], edx
fild qword [ebp - 0x168]
fistp qword [ebp - 0x28]
wait
mov eax, dword [ebp - 0x5c]
fild qword [eax + 0x14c]
fcomp dword [0x438ca0]
fnstsw ax
sahf
jne 0x437ef6
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xc
je 0x437f12
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xd
jne 0x437f40
fild qword [ebp - 0x28]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fcompp
fnstsw ax
sahf
jbe 0x437f40
mov ax, 0x54
call fcn.004aa600
mov edx, 0x13
call fcn.004b12a8
test al, al
je 0x438c76
test bl, bl
jbe 0x437f91
fild qword [ebp - 0x28]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fcompp
fnstsw ax
sahf
jbe 0x437f91
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [eax + 0x144], edx
mov dword [eax + 0x148], edx
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x14c], 0xffffffff
mov dword [eax + 0x150], 0xffffffff
mov eax, dword [0x4be570]
cmp byte [eax], 0
jne 0x437fe3
mov byte [ebp - 0x55], 0xc
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xc
jne 0x437fb1
mov byte [ebp - 0x55], 0xd
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xd
jne 0x437fc3
mov byte [ebp - 0x55], 0xe
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov ax, word [eax + 0x424]
xor ecx, ecx
mov dl, byte [ebp - 0x55]
call fcn.00430df8
test al, al
je 0x438c76
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 8
je 0x437fff
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 9
jne 0x438066
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 8
sete al
mov dx, word [ebp - 2]
call fcn.00436e54
mov edx, dword [0x4be6b0]
mov dword [edx], eax
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 8
je 0x438045
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 9
je 0x438045
mov eax, dword [0x4be6b0]
cmp dword [eax], 0xffffffff
je 0x438054
mov eax, dword [0x4be6b0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x438c76
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xb
je 0x438082
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xa
jne 0x4380b0
mov bl, 2
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xa
jne 0x4380b0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fcomp dword [0x438ca4]
fnstsw ax
sahf
jae 0x4380ac
mov byte [ebp - 0x3b], 0
jmp 0x4380b0
mov byte [ebp - 0x3b], 0xff
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x10]
test al, al
je 0x438c76
test bl, bl
jbe 0x4381a3
mov edx, dword [0x4be784]
add edx, 0x100
lea eax, [ebp - 0x160]
call fcn.004b81b0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
call fcn.004aed10
push eax
lea eax, [ebp - 0x160]
push eax
call sub.kernel32.dll_lstrcatA
push 0x438ca8
lea eax, [ebp - 0x160]
push eax
call sub.kernel32.dll_lstrcatA
cmp bl, 1
jne 0x438142
push 0
lea eax, [ebp - 0x160]
push eax
call sub.kernel32.dll__lcreat
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x438196
lea edx, [ebp - 0x160]
mov ax, 3
call fcn.004acdac
jmp 0x438c76
call fcn.00402634
test eax, eax
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x160]
mov ecx, pe_nt_image_headers32
call fcn.00404b04
mov edx, dword [ebp - 0x16c]
mov eax, 0x4c108c
call fcn.00402bec
mov eax, 0x4c108c
call fcn.0040297c
call fcn.00402634
test eax, eax
je 0x438196
lea edx, [ebp - 0x160]
mov ax, 3
call fcn.004acdac
jmp 0x438c76
mov eax, 0xe000
call fcn.00402504
mov dword [ebp - 0x10], eax
mov ax, 0x142
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xc
jne 0x4381db
mov ax, 0x143
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xd
jne 0x4381fe
mov ax, 0x144
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
mov dword [ebp - 0x50], 0xe000
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xe
je 0x43822d
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0x10
jne 0x438234
mov dword [ebp - 0x50], 0xa800
fild qword [ebp - 0x28]
fsub dword [0x438cb0]
fild dword [ebp - 0x50]
fdivp st(1)
call fcn.004028f4
inc eax
mov dword [ebp - 0x1c], eax
mov eax, 0xe000
call fcn.00402504
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x144]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x148]
mov dword [ebp - 0x2c], edx
test bl, bl
jne 0x438278
mov dword [ebp - 8], 0xffffffff
mov byte [ebp - 0x3a], 0
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xc
je 0x438298
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xd
jne 0x4382bc
mov eax, dword [0x4be374]
mov dl, 1
call fcn.00407928
push 0
mov ecx, dword [0x4be374]
mov edx, dword [fcn.00407928]
xor eax, eax
call fcn.00407c1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x438978
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jne 0x4382ff
fild qword [ebp - 0x28]
fsub dword [0x438cb0]
add esp, 0xfffffff8
fistp qword [esp]
wait
fild dword [ebp - 0x50]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004af060
inc eax
mov word [ebp - 0x14], ax
jmp 0x438307
mov ax, word [ebp - 0x50]
mov word [ebp - 0x14], ax
mov edx, 0xe000
mov eax, dword [ebp - 0xc]
call fcn.004066e4
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xf
jne 0x438331
mov eax, dword [ebp - 0xc]
mov cl, 0x3d
mov edx, 0xe000
call fcn.00402ff0
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0x11
jne 0x43834e
mov eax, dword [ebp - 0xc]
mov cl, 0x60
mov edx, 0xe000
call fcn.00402ff0
movzx esi, word [ebp - 0x14]
push esi
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + 0x1a0]
call dword [edi + 0x18]
mov dword [ebp - 0x38], eax
cmp esi, dword [ebp - 0x38]
jne 0x438978
test bl, bl
jne 0x438508
mov eax, dword [0x4be784]
movzx eax, byte [eax + 0x18b1]
cmp eax, 0xd
ja case.0x438397.0
mov al, byte [eax + 0x43839e]
jmp dword [eax*4 + 0x4383ac]
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_CharToOemBuffA
jmp case.0x438397.0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_OemToCharBuffA
jmp case.0x438397.0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_CharUpperBuffA
jmp case.0x438397.0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_CharLowerBuffA
jmp case.0x438397.0
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00407c74
jmp case.0x438397.0
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
call fcn.00407d08
mov eax, dword [0x4be784]
mov al, byte [eax + 0x18b1]
cmp al, 2
je 0x43844b
mov edx, dword [0x4be784]
cmp al, 3
jne 0x4384de
mov eax, dword [0x4be680]
cmp dword [eax], 0
jne 0x438462
call fcn.004aca90
test al, al
je 0x438978
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 2
jne 0x4384a6
mov dx, word [ebp - 0x38]
test dx, dx
jbe 0x4384de
mov ax, 1
movzx esi, ax
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi - 1]
mov edi, dword [0x4be680]
mov edi, dword [edi]
mov cl, byte [edi + ecx]
push ecx
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + esi - 1]
pop ecx
mov byte [esi], cl
inc eax
dec dx
jne 0x43847d
jmp 0x4384de
mov dx, word [ebp - 0x38]
test dx, dx
jbe 0x4384de
mov ax, 1
movzx esi, ax
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi - 1]
mov edi, dword [0x4be680]
mov edi, dword [edi]
mov cl, byte [edi + ecx + 0x100]
push ecx
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + esi - 1]
pop ecx
mov byte [esi], cl
inc eax
dec dx
jne 0x4384b3
fild dword [ebp - 0x38]
fild qword [ebp - 0x30]
fsubrp st(1)
fistp qword [ebp - 0x30]
wait
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.0041c768
cmp eax, dword [ebp - 0x38]
jne 0x438978
cmp bl, 1
jne 0x438885
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 6
jne 0x438621
mov edx, 0x7000
mov eax, dword [ebp - 0x38]
call fcn.004aa570
mov esi, eax
mov edx, esi
test dx, dx
jbe 0x438591
mov ax, 1
movzx ecx, ax
mov edi, dword [ebp - 0xc]
movzx ecx, byte [edi + ecx - 1]
shr ecx, 4
mov edi, dword [0x4be898]
mov cl, byte [edi + ecx]
push ecx
movzx ecx, ax
add ecx, ecx
mov edi, dword [ebp - 0x10]
lea edi, [edi + ecx - 2]
pop ecx
mov byte [edi], cl
movzx ecx, ax
mov edi, dword [ebp - 0xc]
movzx ecx, byte [edi + ecx - 1]
and ecx, 0xf
mov edi, dword [0x4be898]
mov cl, byte [edi + ecx]
push ecx
movzx ecx, ax
add ecx, ecx
mov edi, dword [ebp - 0x10]
lea edi, [edi + ecx - 1]
pop ecx
mov byte [edi], cl
inc eax
dec dx
jne 0x43853d
movzx eax, si
add eax, eax
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll__hwrite
mov dx, word [ebp - 0x38]
sub dx, si
test dx, dx
jbe 0x438612
mov ax, 1
movzx ecx, ax
movzx edi, si
add ecx, edi
mov edi, dword [ebp - 0xc]
movzx ecx, byte [edi + ecx - 1]
shr ecx, 4
mov edi, dword [0x4be898]
mov cl, byte [edi + ecx]
push ecx
movzx ecx, ax
add ecx, ecx
mov edi, dword [ebp - 0x10]
lea edi, [edi + ecx - 2]
pop ecx
mov byte [edi], cl
movzx ecx, ax
movzx edi, si
add ecx, edi
mov edi, dword [ebp - 0xc]
movzx ecx, byte [edi + ecx - 1]
and ecx, 0xf
mov edi, dword [0x4be898]
mov cl, byte [edi + ecx]
push ecx
movzx ecx, ax
add ecx, ecx
mov edi, dword [ebp - 0x10]
lea edi, [edi + ecx - 1]
pop ecx
mov byte [edi], cl
inc eax
dec dx
jne 0x4385b4
movzx eax, si
mov edx, dword [ebp - 0x38]
sub edx, eax
mov eax, edx
add eax, eax
mov dword [ebp - 0x48], eax
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 7
jne 0x438675
movzx eax, word [ebp - 0x14]
shr eax, 1
push eax
push 0
lea eax, [ebp - 0x3a]
push eax
movzx ecx, word [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004b1510
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jg 0x438675
mov eax, dword [ebp - 0x18]
dec eax
imul eax, eax, 0xe000
mov edx, dword [ebp - 0x48]
neg edx
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [0x4bed48]
mov byte [eax], 1
jmp 0x438978
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xe
jne 0x4386e1
lea ecx, [ebp - 0x10]
movzx edx, word [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00433ef8
movzx eax, word [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
fdiv dword [0x438cb4]
call fcn.004028f4
mov dword [ebp - 0x48], eax
movzx eax, word [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
fdiv dword [0x438cb4]
call fcn.004028c4
fld xword [0x438cb8]
fcompp
fnstsw ax
sahf
jae 0x4386e1
inc dword [ebp - 0x48]
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0x10
jne 0x43874d
lea ecx, [ebp - 0x10]
movzx edx, word [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00433d38
movzx eax, word [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
fdiv dword [0x438cb4]
call fcn.004028f4
mov dword [ebp - 0x48], eax
movzx eax, word [ebp - 0x14]
shl eax, 2
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
fdiv dword [0x438cb4]
call fcn.004028c4
fld xword [0x438cb8]
fcompp
fnstsw ax
sahf
jae 0x43874d
inc dword [ebp - 0x48]
mov eax, dword [0x4be784]
mov al, byte [eax + 0x18b1]
cmp al, 0xf
je 0x43876a
mov edx, dword [0x4be784]
cmp al, 0x11
jne 0x438853
movzx edx, word [ebp - 0x14]
and edx, 3
test edx, edx
je 0x438787
movzx edx, word [ebp - 0x14]
and edx, 3
mov cx, 4
sub cx, dx
add word [ebp - 0x14], cx
mov edx, dword [0x4be784]
cmp al, 0xf
jne 0x4387aa
lea ecx, [ebp - 0x10]
movzx edx, word [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00433fc0
mov edx, dword [0x4be6b0]
mov dword [edx], eax
jmp 0x4387c1
lea ecx, [ebp - 0x10]
movzx edx, word [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00433e00
mov edx, dword [0x4be6b0]
mov dword [edx], eax
mov eax, dword [0x4be6b0]
cmp dword [eax], 0
jg 0x438846
mov eax, dword [ebp - 0x18]
dec eax
imul dword [ebp - 0x50]
mov edx, dword [0x4be6b0]
sub eax, dword [edx]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ax, 0x146
call fcn.004aa600
call fcn.004ae0e4
push 0x438cc4
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_lstrcatA
mov ax, 0x22d
call fcn.004aa600
push eax
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_lstrcatA
push 0x438cc8
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x4bedb0]
mov edx, 3
call fcn.004b12a8
mov eax, dword [0x4bed48]
mov byte [eax], 1
jmp 0x438978
movzx eax, word [ebp - 0x14]
lea eax, [eax + eax*2]
shr eax, 2
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll__hwrite
cmp eax, dword [ebp - 0x48]
jge 0x438885
lea edx, [ebp - 0x160]
mov ax, 5
call fcn.004acdac
mov eax, dword [0x4bed48]
mov byte [eax], 1
jmp 0x438978
cmp bl, 2
jne 0x438913
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xb
jne 0x4388d0
mov byte [ebp - 0x3b], 1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fcomp dword [0x438ccc]
fnstsw ax
sahf
jbe 0x4388b8
mov byte [ebp - 0x3b], 2
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fcomp dword [0x438cd0]
fnstsw ax
sahf
jbe 0x4388d0
mov byte [ebp - 0x3b], 3
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
dec eax
imul edx, eax, 0xe000
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x3b]
call fcn.00437824
test al, al
jne 0x43890d
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov ax, 2
call fcn.004acdac
mov eax, dword [0x4bed48]
mov byte [eax], 1
jmp 0x438978
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec eax
imul eax, eax, 0xe000
movzx edx, word [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x170], eax
fild dword [ebp - 0x170]
fild qword [ebp - 0x28]
fdivp st(1)
fmul dword [0x438cd4]
call fcn.004028e8
mov edx, dword [0x4be344]
mov byte [edx], al
mov eax, dword [0x4be344]
mov al, byte [eax]
mov edx, dword [0x4be8d0]
cmp al, byte [edx]
je 0x43895d
call fcn.004b5c48
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x438978
inc dword [ebp - 0x18]
dec dword [ebp - 0x60]
jne 0x4382d1
test bl, bl
jne 0x4389b3
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x148]
push dword [eax + 0x144]
mov eax, dword [ebp - 0x5c]
fild qword [eax + 0x144]
fild qword [ebp - 0x28]
faddp st(1)
fsub dword [0x438cb0]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
call fcn.00418ac4
jmp 0x4389d8
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fild qword [eax + 0x10]
fsub dword [0x438cb0]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
call fcn.00418ac4
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xc
je 0x438a03
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xd
jne 0x438a3f
mov eax, dword [0x4be784]
cmp byte [eax + 0x18ea], 0
jne 0x438a26
cmp byte [ebp - 3], 0
jne 0x438a26
mov eax, dword [0x4be374]
mov edx, 0x11
call fcn.004066e4
mov eax, dword [0x4be374]
xor edx, edx
call fcn.00407928
mov edx, 0x2c
mov eax, dword [ebp - 0x44]
call fcn.00402524
test bl, bl
jbe 0x438c44
mov eax, dword [ebp - 0x10]
call fcn.00402524
cmp bl, 1
jne 0x438a62
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x438b42
mov eax, dword [0x4be784]
cmp byte [eax + 0x18b1], 0xa
jne 0x438a89
mov edx, 0x438ce0
mov eax, 0x4c108c
call fcn.00404e58
call fcn.00402ca8
jmp 0x438b38
mov dl, 0x53
mov eax, 0x4c108c
call fcn.00403500
movsx edx, byte [ebp - 0x3b]
push edx
mov edx, 0xa
pop ecx
sub edx, ecx
call fcn.0040357c
mov dl, 0x30
call fcn.00403500
movsx edx, byte [ebp - 0x3b]
add edx, 2
call fcn.0040357c
mov edx, 0x438cf4
call fcn.00404e58
call fcn.00402ca8
cmp byte [ebp - 0x3b], 2
jne 0x438ae3
mov edx, 0x438d04
mov eax, 0x4c108c
call fcn.00404e58
call fcn.00402ca8
cmp byte [ebp - 0x3b], 3
jne 0x438afd
mov edx, 0x438d04
mov eax, 0x4c108c
call fcn.00404e58
call fcn.00402ca8
movsx eax, byte [ebp - 0x3b]
add eax, 2
mov edx, 0xff
sub edx, eax
mov dword [ebp - 0x170], edx
fild dword [ebp - 0x170]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov dl, 2
xor eax, eax
call fcn.004af0b0
mov edx, eax
mov eax, 0x4c108c
call fcn.004035b8
call fcn.00403624
mov eax, 0x4c108c
call fcn.00402d90
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x438c38
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x96], 4
je 0x438b7c
mov eax, dword [ebp - 0x5c]
mov ax, word [eax + 0x424]
call fcn.004b1cb8
mov edx, eax
mov eax, dword [0x4bedb0]
call fcn.004b81b0
jmp 0x438b8f
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [0x4bedb0]
call fcn.004b81b0
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_DeleteFileA_1
mov ax, 0xf8
call fcn.004aa600
push eax
mov eax, dword [0x4bee9c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, dword [0x4bedb0]
push eax
lea eax, [ebp - 0x160]
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x438c01
mov edx, dword [0x4bedb0]
mov ax, 3
call fcn.004acdac
mov ax, 0x148
call fcn.004aa600
lea edx, [ebp - 0x160]
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 4
call fcn.004b12a8
jmp 0x438c44
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x96], 4
je 0x438c22
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
call fcn.00419ce8
mov eax, dword [0x4bedb0]
call fcn.004b2314
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
fistp qword [eax + 0x10]
wait
jmp 0x438c44
lea eax, [ebp - 0x160]
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, dword [ebp - 0xc]
call fcn.00402524
call fcn.004adbe0
mov eax, dword [0x4bed48]
cmp byte [eax], 0
je 0x438c5f
test bl, bl
jne 0x438c76
mov eax, dword [ebp - 0x5c]
mov byte [eax + 0x443], 1
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xd2], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438c96
lea eax, [ebp - 0x16c]
call fcn.0040489c
ret