Function at 0x4acde0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x9d0
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x9cc], eax
mov eax, dword [0x514de4]
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
mov dword [0x514df4], 0xf4240
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ace13
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [0x513954]
lea edi, [eax + esi*2 - 8]
cmp esi, 4
jb 0x4ace9c
cmp word [edi], 0x2e
jne 0x4ace9c
movzx ecx, word [edi + 2]
push ecx
call fcn.004b0691
add esp, 4
cmp eax, 0x5a
jne 0x4ace9c
movzx eax, word [edi + 4]
cmp ax, 0x30
jb 0x4ace9c
cmp ax, 0x39
ja 0x4ace9c
movzx eax, word [edi + 6]
cmp ax, 0x30
jb 0x4ace9c
cmp ax, 0x39
ja 0x4ace9c
cmp esi, 4
je 0x4ace7f
movzx eax, word [edi + 8]
cmp ax, 0x30
jb 0x4ace9c
cmp ax, 0x39
ja 0x4ace9c
pop edi
pop esi
mov eax, 3
pop ebp
mov ecx, dword [esp + 0x9cc]
xor ecx, esp
call fcn.004aedbb
add esp, 0x9d0
ret
mov edx, dword [0x514de4]
push ebx
push 0x4c7100
push edx
call fcn.004b2180
add esp, 8
mov dword [0x514de0], eax
cmp eax, ebp
jne 0x4aced5
mov eax, dword [0x514de4]
push eax
push ebp
mov ecx, 0x513904
call fcn.0042a0b0
mov eax, dword [0x514df4]
jmp 0x4ad1f0
push 2
push 0xffffffffffffffff
push 0xfffc0000
push eax
call fcn.004b2233
add esp, 0x10
test eax, eax
je 0x4acf3a
mov ecx, dword [0x514de0]
push ebp
push ebp
push ebp
push ecx
call fcn.004b2233
add esp, 0x10
test eax, eax
je 0x4acf3a
mov edx, dword [0x514de0]
push edx
call fcn.004b203e
mov eax, dword [0x514de4]
add esp, 4
push eax
push 0x204
mov dword [0x514de0], ebp
call fcn.00465ec0
push eax
push ebp
call fcn.00498be0
add esp, 0xc
mov eax, 0xb
jmp 0x4ada10
mov eax, dword [0x514de0]
mov edi, 0x4cd920
call fcn.004a9250
test eax, eax
je 0x4ad09a
mov ecx, dword [0x514de0]
push ecx
call fcn.004b25ce
mov esi, eax
mov eax, dword [0x514de0]
add esp, 4
mov ebx, edx
call fcn.004a9250
test eax, eax
je 0x4acf98
mov edx, dword [0x514de0]
push edx
call fcn.004b25ce
mov esi, eax
mov eax, dword [0x514de0]
add esp, 4
mov edi, 0x4cd920
mov ebx, edx
call fcn.004a9250
test eax, eax
jne 0x4acf72
mov eax, dword [0x514de0]
push ebp
push ebx
push esi
push eax
call fcn.004b2233
add esp, 0x10
test eax, eax
jne 0x4ad0bc
mov eax, dword [0x514de0]
push eax
push 0x12
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004b1faa
add esp, 0x10
cmp eax, 0x12
jb 0x4ad09a
movzx dx, byte [esp + 0x21]
movzx ecx, byte [esp + 0x20]
shl dx, 8
movzx eax, dx
or eax, ecx
inc eax
lea edx, [eax - 1]
mov dword [0x514df4], eax
mov dword [0x514df8], edx
cmp eax, 0x10000
jae 0x4ad01e
movzx cx, byte [esp + 0x23]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x22]
or edx, ecx
cmp edx, eax
jbe 0x4ad01e
mov dword [0x514df4], ebp
jmp 0x4ad0a7
movzx cx, byte [esp + 0x31]
movzx dx, byte [esp + 0x30]
shl cx, 8
or cx, dx
mov word [0x51394c], cx
je 0x4ad09f
movzx eax, cx
inc eax
push eax
call fcn.004aee96
add esp, 4
mov dword [0x514e80], eax
cmp eax, ebp
je 0x4ada5a
mov ecx, dword [0x514de0]
movzx edx, word [0x51394c]
push ecx
push 1
push edx
push eax
call fcn.004b1faa
add esp, 0x10
cmp eax, 1
je 0x4ad089
mov eax, dword [0x514e80]
push eax
call fcn.004aef60
add esp, 4
mov dword [0x514e80], ebp
jmp 0x4ad09a
movzx ecx, word [0x51394c]
mov edx, dword [0x514e80]
mov byte [ecx + edx], 0
mov eax, dword [0x514df4]
cmp eax, ebp
jne 0x4ad1cb
mov eax, dword [0x514de0]
push ebp
push ebp
push ebp
push eax
call fcn.004b2233
add esp, 0x10
test eax, eax
je 0x4ad0f6
mov ecx, dword [0x514de0]
push ecx
call fcn.004b203e
mov edx, dword [0x514de4]
add esp, 4
push edx
push 0x204
mov dword [0x514de0], ebp
call fcn.00465ec0
push eax
push ebp
call fcn.00498be0
add esp, 0xc
mov eax, 0xb
jmp 0x4ada10
mov esi, dword [0x514de0]
call fcn.004a9190
mov esi, eax
cmp esi, ebp
je 0x4ad1c6
mov eax, dword [0x514de0]
push eax
call fcn.004b25ce
add esp, 4
mov dword [0x514e00], eax
mov dword [0x514e04], edx
cmp eax, 4
jne 0x4ad19c
cmp edx, ebp
jne 0x4ad19e
mov ecx, 0x4cd938
mov edx, 0x571bd0
call fcn.004a92c0
test eax, eax
je 0x4ad1a7
mov esi, dword [0x514de0]
call fcn.004a9190
mov esi, eax
mov eax, dword [0x514df4]
cmp esi, ebp
je 0x4ad1cb
cmp eax, ebp
jne 0x4ad1cb
mov ecx, dword [0x514de0]
push ecx
call fcn.004b25ce
add esp, 4
mov dword [0x514e00], eax
mov dword [0x514e04], edx
cmp eax, 8
jne 0x4ad1c6
cmp edx, ebp
jne 0x4ad1c6
mov ecx, 0x4cd928
mov edx, 0x571bd0
call fcn.004a92c0
test eax, eax
je 0x4ad1c6
mov eax, 1
mov dword [0x514df4], eax
jmp 0x4ad1cb
cmp edx, ebp
ja 0x4ad14d
jb 0x4ad1a7
cmp eax, 4
ja 0x4ad14d
mov ecx, 0x4cd938
mov edx, 0x571bd0
call fcn.004a92c0
test eax, eax
je 0x4ad14d
mov eax, 0x1869f
mov dword [0x514df4], eax
jmp 0x4ad152
mov eax, dword [0x514df4]
cmp dword [0x4d6dc8], ebp
jne 0x4ad1df
mov eax, 1
mov dword [0x514df4], eax
jmp 0x4ad216
cmp eax, 0xf4240
jne 0x4ad1f0
mov eax, 1
mov dword [0x514df4], eax
cmp dword [0x4d6dc8], ebp
je 0x4ad216
mov ecx, dword [0x514de0]
cmp ecx, ebp
je 0x4ad216
push ecx
call fcn.004b203e
mov eax, dword [0x514df4]
add esp, 4
mov dword [0x514de0], ebp
xor ecx, ecx
mov dword [0x514df8], ecx
cmp eax, ebp
jbe 0x4ada0e
mov edx, dword [0x514de4]
push ecx
push edx
call fcn.00434ed0
mov ebx, eax
mov eax, dword [0x514de0]
mov dword [esp + 0x18], ebx
cmp eax, ebp
jne 0x4ad2b6
push 0x4c7100
push ebx
call fcn.004b2180
add esp, 8
mov dword [0x514de0], eax
cmp eax, ebp
jne 0x4ad2b6
lea esp, [esp]
mov eax, dword [0x514df8]
push eax
call fcn.00435830
cmp eax, 9
je 0x4ada29
cmp eax, 2
je 0x4ada3c
cmp eax, 3
je 0x4ad9f5
mov ecx, dword [0x514df8]
mov edx, dword [0x514de4]
push ecx
push edx
call fcn.00434ed0
mov ebx, eax
push 0x4c7100
push ebx
mov dword [esp + 0x20], ebx
call fcn.004b2180
add esp, 8
mov dword [0x514de0], eax
cmp eax, ebp
je 0x4ad260
mov esi, eax
call fcn.004a9190
test eax, eax
je 0x4ad9cd
mov eax, dword [0x514de0]
push eax
call fcn.004b25ce
add esp, 4
mov dword [0x514e00], eax
mov dword [0x514e04], edx
xor eax, eax
mov cl, byte [eax + 0x571bd0]
cmp cl, byte [eax + 0x4cd920]
jne 0x4ad2f4
inc eax
cmp eax, 4
jl 0x4ad2e0
cmp eax, 4
je 0x4ad9b4
xor eax, eax
nop
mov dl, byte [eax + 0x571bd0]
cmp dl, byte [eax + 0x4cd908]
jne 0x4ad314
inc eax
cmp eax, 4
jl 0x4ad300
cmp eax, 4
je 0x4ad9b4
xor eax, eax
nop
mov cl, byte [eax + 0x571bd0]
cmp cl, byte [eax + 0x4cd910]
jne 0x4ad334
inc eax
cmp eax, 4
jl 0x4ad320
cmp eax, 4
je 0x4ad9b4
xor eax, eax
nop
mov dl, byte [eax + 0x571bd0]
cmp dl, byte [eax + 0x4cd928]
jne 0x4ad354
inc eax
cmp eax, 4
jl 0x4ad340
cmp eax, 4
jne 0x4ad465
push 0x80
call fcn.004aee96
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4ada5a
xor eax, eax
xor ecx, ecx
xor edx, edx
push esi
mov word [esi], ax
mov word [esi + 2], cx
mov word [esi + 4], dx
mov word [esi + 6], ax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov word [esi + 0x20], cx
mov word [esi + 0x24], dx
mov word [esi + 0x26], ax
mov dword [esi + 0x28], ebp
mov word [esi + 0x2c], cx
mov dword [esi + 0x38], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x58], ebp
call fcn.004ab920
mov edx, dword [esi + 0x54]
mov edi, eax
push edx
mov dword [esp + 0x18], edi
call fcn.0046f470
push eax
push 0x268
call fcn.00465ec0
push eax
lea eax, [esp + 0x54]
push eax
mov edx, 0x4c8
call fcn.004a5ca0
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
call fcn.0048b390
call fcn.0044aea0
cmp byte [0x527e58], 0
jne 0x4ada35
cmp dword [esp + 0x10], ebp
je 0x4ad42b
mov dword [esp + 0x10], ebp
cmp edi, 2
je 0x4ad9cd
cmp dword [esp + 0x14], ebp
jne 0x4ad9b4
inc dword [0x513950]
mov eax, 0x514e78
cmp dword [0x514e78], ebp
je 0x4ad455
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
lea eax, [esi + 0x7c]
mov dword [eax], ebp
mov dword [esp + 0x1c], eax
jmp 0x4ad9b4
xor eax, eax
jmp 0x4ad470
mov dl, byte [eax + 0x571bd0]
cmp dl, byte [eax + 0x4cd918]
jne 0x4ad484
inc eax
cmp eax, 4
jl 0x4ad470
cmp eax, 4
jne 0x4ad992
cmp dword [esp + 0x10], ebp
jne 0x4ad4f9
mov ecx, dword [0x513950]
cmp ecx, ebp
je 0x4ad4f9
lea eax, [ecx*4]
mov edx, eax
shr edx, 2
cmp edx, ecx
jne 0x4ada5a
push eax
call fcn.004aee96
add esp, 4
mov dword [0x513948], eax
cmp eax, ebp
je 0x4ada5a
mov ecx, dword [0x514e78]
cmp ecx, ebp
je 0x4ad4e2
mov dword [eax], ecx
mov ecx, dword [ecx + 0x7c]
add eax, 4
cmp ecx, ebp
jne 0x4ad4d1
mov eax, dword [0x513948]
mov ecx, dword [0x513950]
push 0x4a7d80
push 4
push ecx
push eax
call fcn.004b1820
add esp, 0x10
mov edx, dword [0x514de0]
push edx
push 1
lea eax, [esp + 0x28]
push 0x2a
push eax
mov dword [esp + 0x20], 1
call fcn.004b1faa
add esp, 0x10
cmp eax, 1
jne 0x4ad9b4
push 0x80
call fcn.004aee96
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4ada5a
movzx ecx, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
movzx eax, byte [esp + 0x23]
shl cx, 8
or cx, dx
movzx edx, byte [esp + 0x25]
mov word [esi], cx
movzx ecx, byte [esp + 0x22]
shl ax, 8
or ax, cx
movzx ecx, byte [esp + 0x27]
mov word [esi + 2], ax
movzx eax, byte [esp + 0x24]
shl dx, 8
or dx, ax
movzx eax, byte [esp + 0x2b]
mov word [esi + 4], dx
movzx edx, byte [esp + 0x26]
shl cx, 8
or cx, dx
movzx edx, byte [esp + 0x2a]
shl ax, 8
mov word [esi + 6], cx
movzx ecx, ax
movzx eax, byte [esp + 0x29]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x28]
shl ecx, 0x10
or ecx, edx
or ecx, eax
movzx eax, byte [esp + 0x2e]
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 0x2f]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x2d]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [esp + 0x2c]
shl edx, 0x10
or edx, eax
or edx, ecx
movzx ecx, byte [esp + 0x32]
mov dword [esi + 0xc], edx
movzx edx, byte [esp + 0x33]
shl dx, 8
movzx eax, dx
movzx edx, byte [esp + 0x31]
or eax, ecx
shl eax, 0x10
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x30]
or eax, ecx
or eax, edx
movzx edx, byte [esp + 0x36]
mov dword [esi + 0x10], eax
movzx eax, byte [esp + 0x37]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x35]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x34]
shl ecx, 0x10
or ecx, edx
movzx edx, byte [esp + 0x3b]
or ecx, eax
movzx ax, byte [esp + 0x39]
mov dword [esi + 0x18], ecx
movzx ecx, byte [esp + 0x38]
shl ax, 8
or ax, cx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
mov word [esi + 0x20], ax
shl dx, 8
movzx ecx, byte [esp + 0x3a]
or dx, cx
movzx ecx, byte [esp + 0x3c]
mov word [esi + 0x24], dx
movzx edx, byte [esp + 0x3d]
shl dx, 8
or dx, cx
mov word [esi + 0x26], dx
movzx edx, byte [esp + 0x3f]
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x3e]
or ecx, edx
movzx edx, byte [esp + 0x40]
mov dword [esi + 0x28], ecx
movzx ecx, byte [esp + 0x41]
shl cx, 8
or cx, dx
mov word [esi + 0x2c], cx
movzx ecx, byte [esp + 0x45]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x44]
or edx, ecx
movzx ecx, byte [esp + 0x43]
shl cx, 8
shl edx, 0x10
movzx ecx, cx
or edx, ecx
movzx ecx, byte [esp + 0x42]
or edx, ecx
mov dword [esi + 0x38], edx
movzx edx, byte [esp + 0x49]
shl dx, 8
movzx ecx, dx
movzx edx, byte [esp + 0x48]
or ecx, edx
movzx edx, byte [esp + 0x47]
shl dx, 8
movzx edx, dx
shl ecx, 0x10
or ecx, edx
movzx edx, byte [esp + 0x46]
or ecx, edx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x58], ebp
cmp ax, bp
je 0x4ad9b4
movzx eax, ax
inc eax
push eax
call fcn.004aee96
mov edi, eax
add esp, 4
mov dword [esi + 0x4c], edi
cmp edi, ebp
je 0x4ada5a
movzx ebx, word [esi + 0x24]
cmp bx, bp
je 0x4ad773
movzx ecx, bx
inc ecx
push ecx
call fcn.004aee96
add esp, 4
mov dword [esi + 0x44], eax
cmp eax, ebp
je 0x4ada5a
movzx ebp, word [esi + 0x26]
test bp, bp
je 0x4ad794
movzx edx, bp
inc edx
push edx
call fcn.004aee96
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4ada5a
mov eax, dword [0x514de0]
movzx ecx, word [esi + 0x20]
push eax
push 1
push ecx
push edi
call fcn.004b1faa
add esp, 0x10
cmp eax, 1
jne 0x4ad9b4
test bx, bx
je 0x4ad7d9
mov edx, dword [0x514de0]
mov ecx, dword [esi + 0x44]
push edx
push eax
movzx eax, bx
push eax
push ecx
call fcn.004b1faa
add esp, 0x10
cmp eax, 1
jne 0x4ad9b4
test bp, bp
je 0x4ad800
mov edx, dword [0x514de0]
mov ecx, dword [esi + 0x48]
push edx
movzx eax, bp
push 1
push eax
push ecx
call fcn.004b1faa
add esp, 0x10
cmp eax, 1
jne 0x4ad9b4
movzx edx, word [esi + 0x20]
push edi
mov byte [edx + edi], 0
call fcn.004a7e40
mov edi, eax
test edi, edi
je 0x4ad9b4
mov eax, dword [edi + 8]
cmp eax, dword [esi + 8]
jne 0x4ad9b4
cmp dword [edi + 0x58], 0
movzx ecx, word [esi]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov word [edi], cx
movzx ecx, word [esi + 0x2c]
mov dword [edi + 0x44], edx
mov edx, dword [esi + 0x38]
mov word [edi + 0x24], bx
mov word [edi + 0x26], bp
mov dword [edi + 0x48], eax
mov word [edi + 0x2c], cx
mov dword [edi + 0x38], edx
jne 0x4ad87f
mov eax, 0x800
test word [edi + 4], ax
je 0x4ad879
mov ecx, dword [edi + 0x4c]
push ecx
call fcn.004c0547
add esp, 4
mov dword [edi + 0x58], eax
test eax, eax
jne 0x4ad87f
push 4
call fcn.004a59d0
jmp 0x4ad87f
push edi
call fcn.004a8260
movzx eax, word [edi]
movzx ecx, al
shr ax, 8
test ax, ax
jne 0x4ad8a6
test dword [edi + 0x38], 0xffff0000
je 0x4ad8b7
cmp ecx, 0x19
je 0x4ad8a6
cmp ecx, 0x1a
je 0x4ad8a6
cmp ecx, 0x28
jne 0x4ad8b7
cmp ax, 6
je 0x4ad8b7
cmp ax, 0xb
jne 0x4ad8c2
cmp ecx, 0x32
jne 0x4ad8c2
mov eax, dword [edi + 0x4c]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
movzx eax, word [edi]
movzx ecx, al
shr ax, 8
test ax, ax
jne 0x4ad8e9
test dword [edi + 0x38], 0xffff0000
je 0x4ad8fa
cmp ecx, 0x19
je 0x4ad8e9
cmp ecx, 0x1a
je 0x4ad8e9
cmp ecx, 0x28
jne 0x4ad8fa
cmp ax, 6
je 0x4ad8fa
cmp ax, 0xb
jne 0x4ad905
cmp ecx, 0x32
jne 0x4ad905
mov eax, dword [edi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov edx, dword [0x514ddc]
push edx
call fcn.004b25ce
mov ecx, dword [edi + 0x30]
mov esi, eax
mov eax, dword [edi + 0x34]
push 0
push eax
mov ebx, edx
mov edx, dword [0x514ddc]
push ecx
push edx
call fcn.004b2233
add esp, 0x14
test eax, eax
jne 0x4ada43
push 1
push edi
call fcn.004aaa40
mov eax, dword [0x514ddc]
push 0
push ebx
push esi
push eax
call fcn.004b2233
add esp, 0x10
test eax, eax
jne 0x4ada4e
mov ecx, dword [0x514ddc]
push ecx
call fcn.004b25ce
add esp, 4
cmp esi, eax
jne 0x4ad96f
cmp ebx, edx
je 0x4ad9b4
mov edx, dword [0x514de0]
push edx
call fcn.004b203e
add esp, 4
mov dword [0x514de0], 0
mov eax, 0xe
jmp 0x4ada10
cmp dword [0x514e78], ebp
jne 0x4ad9b4
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x571bd0]
cmp dl, byte [eax + str.PK_a_b]
jne 0x4ad9b4
inc eax
cmp eax, 4
jl 0x4ad9a0
mov esi, dword [0x514de0]
call fcn.004a9190
mov ebx, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jne 0x4ad2c5
mov eax, dword [0x514de0]
cmp eax, ebp
je 0x4ad9df
push eax
call fcn.004b203e
add esp, 4
push ebx
mov dword [0x514de0], ebp
call fcn.004aef60
add esp, 4
cmp dword [esp + 0x14], 2
je 0x4ada0e
mov ecx, dword [0x514df8]
inc ecx
mov dword [0x514df8], ecx
cmp ecx, dword [0x514df4]
jb 0x4ad226
xor eax, eax
mov ecx, dword [esp + 0x9dc]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004aedbb
add esp, 0x9d0
ret
push ebx
push ebp
mov ecx, 0x513904
call fcn.0042a0b0
mov eax, 9
jmp 0x4ada10
mov eax, 2
jmp 0x4ada10
mov eax, dword [0x514de0]
push eax
jmp 0x4ad976
mov ecx, dword [0x514de0]
push ecx
jmp 0x4ad976
mov eax, 4
jmp 0x4ada10