Function at 0x519692
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57595f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1176c
call fcn.0054c740
lea ecx, [ebp - 0xf10]
call fcn.00566717
mov dword [ebp - 4], 0
mov dword [ebp - 0xef0], 0xffffffff
mov dword [ebp - 0x5140], 0
mov dword [ebp - 0xedc], 0
mov dword [ebp - 0xf14], 0
mov dword [ebp - 0xee4], 0
mov dword [ebp - 0x1175c], 0
mov dword [ebp - 0xccc], 0
mov dword [ebp - 0xee8], 0
mov dword [ebp - 0x513c], 0
mov dword [ebp - 0x1174c], 0
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xed8], 0x4000
mov dword [ebp - 0xed4], 2
mov dword [ebp - 0xcc8], 0x200
mov dword [ebp - 0x14], 0x120
mov dword [ebp - 0x11754], 1
mov dword [ebp - 0xcd0], 0
mov dword [ebp - 0xd548], 0
mov dword [ebp - 0x11750], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5974], 0x407
je 0x5197b6
mov ecx, dword [ebp - 0x11754]
mov dword [ebp - 0x11764], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf10]
call fcn.0056676c
mov eax, dword [ebp - 0x11764]
jmp 0x51a517
cmp dword [ebp - 0x11754], 0
je 0x51981c
mov edx, dword [ebp + 8]
add edx, 0x2653
push edx
call fcn.0054ce70
add esp, 4
test eax, eax
je 0x51981c
mov eax, dword [ebp + 8]
add eax, 0x2653
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51981c
mov dword [ebp - 0x11754], 0
mov ecx, dword [ebp - 0x11754]
mov dword [ebp - 0x11768], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf10]
call fcn.0056676c
mov eax, dword [ebp - 0x11768]
jmp 0x51a517
cmp dword [ebp - 0x11754], 0
je 0x519882
mov edx, dword [ebp + 8]
add edx, 0x2757
push edx
call fcn.0054ce70
add esp, 4
test eax, eax
je 0x519882
mov eax, dword [ebp + 8]
add eax, 0x2757
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x519882
mov dword [ebp - 0x11754], 0
mov ecx, dword [ebp - 0x11754]
mov dword [ebp - 0x1176c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf10]
call fcn.0056676c
mov eax, dword [ebp - 0x1176c]
jmp 0x51a517
cmp dword [ebp - 0x11754], 0
je 0x51a4c3
push 0x800
push 0
lea edx, [ebp - 0xcbc]
push edx
call fcn.0054bf90
add esp, 0xc
push str.Phy_Block_Header
lea eax, [ebp - 0xcbc]
push eax
call fcn.0054be90
add esp, 8
push 0
push 0x200
lea ecx, [ebp - 0xed0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051b488
add esp, 0x10
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x6ad8]
shl ecx, 8
mov edx, dword [ebp - 0xd50]
and edx, 0xff
add ecx, edx
mov dword [ebp - 0xcc0], ecx
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0xed0]
push ecx
call fcn.0051d0f3
add esp, 8
lea edx, [ebp - 0x5140]
push edx
lea eax, [ebp - 0xee0]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xcc4]
push edx
lea eax, [ebp - 0xd544]
push eax
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.00519609
add esp, 0x18
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 0
jl 0x51995c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 7
jg 0x51995c
mov dword [ebp - 0xd544], 0
push str.Twin_Mode
lea ecx, [ebp - 0xcac]
push ecx
call fcn.0054be90
add esp, 8
mov dl, byte [ebp - 0xd544]
mov byte [ebp - 0xc9d], dl
push str.Intlv_Mode
lea eax, [ebp - 0xc9c]
push eax
call fcn.0054be90
add esp, 8
mov cl, byte [ebp - 0xcc4]
mov byte [ebp - 0xc8d], cl
push str.2Plane_Mode
lea edx, [ebp - 0xc8c]
push edx
call fcn.0054be90
add esp, 8
mov al, byte [ebp - 0x10]
mov byte [ebp - 0xc7d], al
push str.MLC_Flash
lea ecx, [ebp - 0xc7c]
push ecx
call fcn.0054be90
add esp, 8
mov dl, byte [ebp - 0xee0]
mov byte [ebp - 0xc6d], dl
lea eax, [ebp - 0xabc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x6568
push ecx
call fcn.005305b1
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x2653
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x519ab4
push 0
push 0x40
mov eax, dword [ebp + 8]
add eax, 0x2653
push eax
lea ecx, [ebp - 0xf10]
call fcn.00566829
test eax, eax
je 0x519ab4
lea ecx, [ebp - 0xf10]
call fcn.00566b23
mov dword [ebp - 0xf14], eax
push 1
mov ecx, dword [ebp - 0xf14]
push ecx
call fcn.0054e4ad
add esp, 8
mov dword [ebp - 0xcd0], eax
cmp dword [ebp - 0xcd0], 0
jne 0x519a90
mov edx, dword [ebp - 0x1175c]
add edx, 1
mov dword [ebp - 0x1175c], edx
cmp dword [ebp - 0x1175c], 0xa
jle 0x519a83
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x519a3c
mov eax, dword [ebp - 0xf14]
push eax
mov ecx, dword [ebp - 0xcd0]
push ecx
lea ecx, [ebp - 0xf10]
call fcn.004419f0
lea ecx, [ebp - 0xf10]
call fcn.00566a44
mov edx, dword [ebp + 8]
add edx, 0x2757
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x519b76
push 0
push 0x40
mov eax, dword [ebp + 8]
add eax, 0x2757
push eax
lea ecx, [ebp - 0xf10]
call fcn.00566829
test eax, eax
je 0x519b76
lea ecx, [ebp - 0xf10]
call fcn.00566b23
mov dword [ebp - 0xee4], eax
push 1
mov ecx, dword [ebp - 0xee4]
push ecx
call fcn.0054e4ad
add esp, 8
mov dword [ebp - 0xd548], eax
cmp dword [ebp - 0xd548], 0
jne 0x519b52
mov edx, dword [ebp - 0x1175c]
add edx, 1
mov dword [ebp - 0x1175c], edx
cmp dword [ebp - 0x1175c], 0xa
jle 0x519b45
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x519afe
mov eax, dword [ebp - 0xee4]
push eax
mov ecx, dword [ebp - 0xd548]
push ecx
lea ecx, [ebp - 0xf10]
call fcn.004419f0
lea ecx, [ebp - 0xf10]
call fcn.00566a44
cmp dword [0x6857a4], 0
je 0x519b89
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x519b76
mov dword [0x6857a4], 1
push 0x6785ac
push 0
push 0x5c9e3c
push 0x5c9e4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xef0], eax
cmp dword [ebp - 0xef0], 0
jl 0x519c93
mov edx, dword [ebp - 0xef0]
imul edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xf14]
jl 0x519bdb
mov dword [ebp - 0xef0], 0xffffffff
jmp 0x519bfa
mov eax, dword [ebp - 0xef0]
imul eax, dword [ebp - 0xed8]
cmp eax, dword [ebp - 0xee4]
jl 0x519bfa
mov dword [ebp - 0xef0], 0xffffffff
cmp dword [ebp - 0xef0], 0
jl 0x519c93
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xef0]
imul edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xcd0]
add eax, edx
push eax
mov ecx, dword [ebp - 0xcd0]
push ecx
call fcn.0054c7e0
add esp, 0xc
mov edx, dword [ebp - 0xed8]
push edx
mov eax, dword [ebp - 0xef0]
imul eax, dword [ebp - 0xed8]
mov ecx, dword [ebp - 0xd548]
add ecx, eax
push ecx
mov edx, dword [ebp - 0xd548]
push edx
call fcn.0054c7e0
add esp, 0xc
mov eax, dword [ebp - 0xef0]
add eax, 1
push eax
push 0x5c9e54
lea ecx, [ebp - 0xf34]
push ecx
call fcn.0054c6e3
add esp, 0xc
push 0x6785ac
lea edx, [ebp - 0xf34]
push edx
push str.PhySelectIdx
push str.EXTRA
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [0x6857a4], 0
cmp dword [ebp - 0xef0], 0
jge 0x519cb5
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xf14], eax
mov ecx, dword [ebp - 0xed8]
mov dword [ebp - 0xee4], ecx
push 0x5c9e70
lea edx, [ebp - 0xbbc]
push edx
call fcn.0054be90
add esp, 8
push 0x5c9e74
lea eax, [ebp - 0xbac]
push eax
call fcn.0054be90
add esp, 8
mov dword [ebp - 0x11760], 0
jmp 0x519d0d
mov ecx, dword [ebp - 0x11760]
add ecx, 1
mov dword [ebp - 0x11760], ecx
cmp dword [ebp - 0x11760], 4
jge 0x519d54
mov ecx, dword [ebp - 0x11760]
shl ecx, 3
mov edx, dword [ebp - 0xf14]
sar edx, cl
mov eax, dword [ebp - 0x11760]
mov byte [ebp + eax - 0xbb4], dl
mov ecx, dword [ebp - 0x11760]
shl ecx, 3
mov edx, dword [ebp - 0xee4]
sar edx, cl
mov eax, dword [ebp - 0x11760]
mov byte [ebp + eax - 0xba4], dl
jmp 0x519cfe
mov ecx, dword [ebp - 0x5140]
mov dword [ebp - 0xccc], ecx
cmp dword [ebp - 0xd544], 0
je 0x519d77
mov edx, dword [ebp - 0xccc]
shl edx, 1
mov dword [ebp - 0xccc], edx
cmp dword [ebp - 0xccc], 0x10
jl 0x519d8a
mov dword [ebp - 0xccc], 0x10
push 0x10
push 0
lea eax, [ebp - 0xf00]
push eax
call fcn.0054bf90
add esp, 0xc
push 0x8400
push 0
lea ecx, [ebp - 0xd540]
push ecx
call fcn.0054bf90
add esp, 0xc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 8
jl 0x519dee
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 0xd
jg 0x519dee
mov ecx, dword [ebp - 0xec4]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 0xec5]
and edx, 0xff
add ecx, edx
mov dword [ebp - 0xcc0], ecx
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0xf00]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xcc0]
push edx
push 0xa
push 1
call fcn.0051cd16
add esp, 0x20
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 8
jl 0x519e7c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 0xd
jg 0x519e7c
mov byte [ebp - 0xef7], 4
xor edx, edx
cmp dword [ebp - 0xd544], 0
setne dl
inc edx
mov eax, dword [ebp - 0x5140]
imul eax, edx
mov byte [ebp - 0xef5], al
mov ecx, dword [ebp - 0xef5]
and ecx, 0xff
add ecx, 1
mov dword [ebp - 0xed4], ecx
mov edx, dword [ebp - 0xef5]
and edx, 0xff
shl edx, 9
mov dword [ebp - 0xcc8], edx
jmp 0x519e83
mov byte [ebp - 0xef5], 2
mov eax, dword [ebp - 0xed4]
shl eax, 9
push eax
lea ecx, [ebp - 0xd540]
push ecx
lea edx, [ebp - 0xf00]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2d67
add esp, 0x10
test eax, eax
je 0x519ed3
mov ecx, dword [ebp - 0xcc8]
xor edx, edx
mov dl, byte [ebp + ecx - 0xd540]
cmp edx, 0xe1
je 0x519ed1
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
jmp 0x519ee2
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
mov dword [ebp - 0x1174c], 0x11b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 8
jl 0x519f15
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5940], 0xd
jg 0x519f15
mov dword [ebp - 0x1174c], 0x1dd
mov dword [ebp - 0x14], 0x1e2
mov edx, dword [ebp - 0x1174c]
cmp edx, dword [ebp - 0x14]
jge 0x519f96
push 0x10
push 0
lea eax, [ebp - 0xf00]
push eax
call fcn.0054bf90
add esp, 0xc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x6ad8]
shl edx, 8
mov eax, dword [ebp - 0x1174c]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xd540]
add edx, ecx
mov dword [ebp - 0xee8], edx
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0xf00]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xee8]
push ecx
push 0xc
push 1
call fcn.0051cd16
add esp, 0x20
push 0
push 0
lea edx, [ebp - 0xf00]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2d67
add esp, 0x10
mov dword [ebp - 0x11758], 0
jmp 0x519fb1
mov ecx, dword [ebp - 0x11758]
add ecx, 1
mov dword [ebp - 0x11758], ecx
cmp dword [ebp - 0x11758], 2
jge 0x51a4c3
cmp dword [ebp - 0x11754], 0
jne 0x519fcc
jmp 0x51a4c3
mov dword [ebp - 0x513c], 0
mov edx, dword [ebp - 0x1174c]
xor eax, eax
mov al, byte [ebp + edx - 0xd540]
mov dword [ebp - 0xee8], eax
mov ecx, dword [ebp - 0x11758]
mov dword [ebp - 0x11774], ecx
cmp dword [ebp - 0x11774], 0
je 0x51a00e
cmp dword [ebp - 0x11774], 1
je 0x51a042
jmp 0x51a0ea
mov edx, dword [ebp - 0xf14]
mov dword [ebp - 0xedc], edx
mov eax, dword [ebp - 0xccc]
shl eax, 9
mov ecx, dword [ebp - 0xedc]
add ecx, eax
mov dword [ebp - 0xedc], ecx
mov edx, dword [ebp - 0xcd0]
mov dword [ebp - 0x11750], edx
jmp 0x51a0ea
mov eax, dword [ebp - 0x1174c]
add eax, 1
mov dword [ebp - 0x1174c], eax
mov ecx, dword [ebp - 0x1174c]
cmp ecx, dword [ebp - 0x14]
jge 0x51a0d2
push 0x10
push 0
lea edx, [ebp - 0xf00]
push edx
call fcn.0054bf90
add esp, 0xc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x6ad8]
shl ecx, 8
mov edx, dword [ebp - 0x1174c]
xor eax, eax
mov al, byte [ebp + edx - 0xd540]
add ecx, eax
mov dword [ebp - 0xee8], ecx
lea ecx, [ebp - 0x4bc]
push ecx
lea edx, [ebp - 0xf00]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xee8]
push eax
push 0xc
push 1
call fcn.0051cd16
add esp, 0x20
push 0
push 0
lea ecx, [ebp - 0xf00]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c2d67
add esp, 0x10
mov eax, dword [ebp - 0xee4]
mov dword [ebp - 0xedc], eax
mov ecx, dword [ebp - 0xd548]
mov dword [ebp - 0x11750], ecx
cmp dword [ebp - 0xedc], 0
jle 0x51a4a7
mov edx, dword [ebp - 0x1174c]
cmp edx, dword [ebp - 0x14]
jge 0x51a4a7
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x6ad8]
shl ecx, 8
mov edx, dword [ebp - 0x1174c]
xor eax, eax
mov al, byte [ebp + edx - 0xd540]
add ecx, eax
mov dword [ebp - 0xee8], ecx
mov dword [ebp - 0x5138], 0
jmp 0x51a146
mov ecx, dword [ebp - 0x5138]
add ecx, 1
mov dword [ebp - 0x5138], ecx
mov edx, dword [ebp - 0xee0]
neg edx
sbb edx, edx
and edx, 0x40
add edx, 0x40
cmp dword [ebp - 0x5138], edx
jge 0x51a405
cmp dword [ebp - 0xedc], 0
jg 0x51a170
jmp 0x51a405
mov dword [ebp - 0xeec], 0
jmp 0x51a18b
mov eax, dword [ebp - 0xeec]
add eax, 1
mov dword [ebp - 0xeec], eax
xor ecx, ecx
cmp dword [ebp - 0xcc4], 0
setne cl
inc ecx
cmp dword [ebp - 0xeec], ecx
jge 0x51a400
cmp dword [ebp - 0xedc], 0
jg 0x51a1b2
jmp 0x51a400
mov dword [ebp - 0x1c], 0
jmp 0x51a1c4
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
xor eax, eax
cmp dword [ebp - 0x10], 0
setne al
inc eax
cmp dword [ebp - 0x1c], eax
jge 0x51a3fb
cmp dword [ebp - 0xedc], 0
jg 0x51a1e5
jmp 0x51a3fb
lea ecx, [ebp - 0x4bc]
push ecx
lea edx, [ebp - 0xf00]
push edx
push 0
push 0
mov eax, dword [ebp - 0x5138]
push eax
mov ecx, dword [ebp - 0xee8]
push ecx
push 0x3b
push 0
call fcn.0051cd16
add esp, 0x20
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 0
jl 0x51a273
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 7
jg 0x51a273
mov byte [ebp - 0xef9], 0x17
mov ecx, dword [ebp - 0xeec]
neg ecx
sbb ecx, ecx
and ecx, 0x40
mov edx, dword [ebp - 0x1c]
neg edx
sbb edx, edx
and edx, 0x80
or ecx, edx
mov byte [ebp - 0xef8], cl
mov eax, dword [ebp - 0xccc]
add eax, 1
mov byte [ebp - 0xef5], al
mov ecx, dword [ebp - 0xef5]
and ecx, 0xff
mov dword [ebp - 0xed4], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x5940], 8
jl 0x51a2cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5940], 0xd
jg 0x51a2cd
mov ecx, dword [ebp - 0xeec]
neg ecx
sbb ecx, ecx
and ecx, 2
or ecx, 4
xor edx, edx
cmp dword [ebp - 0x1c], 0
setne dl
or ecx, edx
mov byte [ebp - 0xef7], cl
mov al, byte [ebp - 0xccc]
mov byte [ebp - 0xef5], al
mov ecx, dword [ebp - 0xef5]
and ecx, 0xff
add ecx, 1
mov dword [ebp - 0xed4], ecx
push 0x4200
push 0
lea edx, [ebp - 0x5134]
push edx
call fcn.0054bf90
add esp, 0xc
push 0x4200
push 0
lea eax, [ebp - 0x11748]
push eax
call fcn.0054bf90
add esp, 0xc
cmp dword [ebp - 0x11758], 0
jne 0x51a337
cmp dword [ebp - 0x5138], 0
jne 0x51a337
cmp dword [ebp - 0xeec], 0
jne 0x51a337
cmp dword [ebp - 0x1c], 0
jne 0x51a337
push 0x800
lea ecx, [ebp - 0xcbc]
push ecx
lea edx, [ebp - 0x5134]
push edx
call fcn.0054c7e0
add esp, 0xc
jmp 0x51a3a8
mov eax, dword [ebp - 0xedc]
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
cmp eax, dword [ebp - 0xccc]
jle 0x51a362
mov eax, dword [ebp - 0xccc]
shl eax, 9
mov dword [ebp - 0x11778], eax
jmp 0x51a36e
mov ecx, dword [ebp - 0xedc]
mov dword [ebp - 0x11778], ecx
mov edx, dword [ebp - 0x11778]
push edx
mov eax, dword [ebp - 0x11750]
add eax, dword [ebp - 0x513c]
push eax
lea ecx, [ebp - 0x5134]
push ecx
call fcn.0054c7e0
add esp, 0xc
mov edx, dword [ebp - 0xccc]
shl edx, 9
mov eax, dword [ebp - 0x513c]
add eax, edx
mov dword [ebp - 0x513c], eax
mov ecx, dword [ebp - 0xed4]
shl ecx, 9
push ecx
lea edx, [ebp - 0x5134]
push edx
lea eax, [ebp - 0xf00]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c397a
add esp, 0x10
test eax, eax
jne 0x51a3df
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
mov edx, dword [ebp - 0xccc]
shl edx, 9
mov eax, dword [ebp - 0xedc]
sub eax, edx
mov dword [ebp - 0xedc], eax
jmp 0x51a1bb
jmp 0x51a17c
jmp 0x51a137
cmp dword [ebp - 0xedc], 0
jle 0x51a4a2
mov ecx, dword [ebp - 0x1174c]
add ecx, 1
mov dword [ebp - 0x1174c], ecx
mov edx, dword [ebp - 0x1174c]
cmp edx, dword [ebp - 0x14]
jge 0x51a4a2
push 0x10
push 0
lea eax, [ebp - 0xf00]
push eax
call fcn.0054bf90
add esp, 0xc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x6ad8]
shl edx, 8
mov eax, dword [ebp - 0x1174c]
xor ecx, ecx
mov cl, byte [ebp + eax - 0xd540]
add edx, ecx
mov dword [ebp - 0xee8], edx
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0xf00]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xee8]
push ecx
push 0xc
push 1
call fcn.0051cd16
add esp, 0x20
push 0
push 0
lea edx, [ebp - 0xf00]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c2d67
add esp, 0x10
jmp 0x51a0ea
mov ecx, dword [ebp - 0x1174c]
cmp ecx, dword [ebp - 0x14]
jl 0x51a4be
mov dword [ebp - 0x11754], 0
jmp 0x51a4c3
jmp 0x519fa2
cmp dword [ebp - 0xcd0], 0
je 0x51a4db
mov edx, dword [ebp - 0xcd0]
push edx
call fcn.0054ccb2
add esp, 4
cmp dword [ebp - 0xd548], 0
je 0x51a4f3
mov eax, dword [ebp - 0xd548]
push eax
call fcn.0054ccb2
add esp, 4
mov ecx, dword [ebp - 0x11754]
mov dword [ebp - 0x11770], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf10]
call fcn.0056676c
mov eax, dword [ebp - 0x11770]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret