Function at 0x413ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a3058
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
lea esi, [ebp + 0x3c]
push 0x4a7a28
push esi
call fcn.00403140
mov eax, dword [esi]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.004130d0
push 3
lea ecx, [esp + 0x2c]
push ecx
xor edi, edi
mov ecx, esi
mov dword [ebp + 0x670], edi
call fcn.0040adf0
mov eax, dword [eax]
push 0x4a8050
push eax
call fcn.0046ab92
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x413f7b
mov eax, dword [esi]
push edi
push eax
mov ecx, ebp
call fcn.004199c0
jmp 0x413ff3
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push str..DAT
push eax
call fcn.0046ab92
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413fbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x41401d
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.00416c30
test eax, eax
jne 0x413ff3
push str..CRS
push str..DAT
mov ecx, esi
call fcn.00403830
mov eax, dword [esi]
push 0
push eax
mov ecx, edi
call fcn.00417020
cmp dword [ebp + 0x670], 1
jne 0x414008
push 0x40
push 0x4a8c88
call sub.KSCommon.dll_int___stdcall_MsgBox_unsigned_short_int_const___unsigned_int_
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push str..DXF
push eax
call fcn.0046ab92
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x414072
mov eax, dword [esi]
push edi
push eax
mov ecx, ebp
call fcn.00418930
jmp 0x413ff3
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push str..CRS
push eax
call fcn.0046ab92
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4140b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4140c7
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push edi
push eax
jmp 0x413fee
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push 0x4a8010
push eax
call fcn.0046ab92
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41410b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x414121
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push edi
push eax
call fcn.004132e0
jmp 0x413ff3
push 3
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push 0x4a8b04
push eax
mov dword [esp + 0x28], edi
call fcn.0046ab92
add esp, 8
test eax, eax
je 0x414178
push 3
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push 0x4a8afc
push eax
call fcn.0046ab92
add esp, 8
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00403000
test edi, edi
jne 0x414178
xor bl, bl
jmp 0x41417a
mov bl, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00403000
test bl, bl
je 0x4141a2
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
push 0
push eax
call fcn.004191b0
jmp 0x413ff3
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push str..ISO
push eax
call fcn.0046ab92
add esp, 8
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00403000
test edi, edi
je 0x4141e2
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
push 0
push edx
call fcn.00417b90
jmp 0x413ff3
push 4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0040adf0
mov eax, dword [eax]
push str..2NC
push eax
call fcn.0046ab92
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00403000
test edi, edi
je 0x414222
mov ecx, dword [esi]
push 0
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00418260
jmp 0x413ff3
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x413ff3
push 0x40
push 0x4a8c74
jmp 0x414003