Function at 0x4176b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a317c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004569b0
lea ecx, [esp + 0x44]
call fcn.00437d60
xor ebx, ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x168], ebx
call fcn.0047ef6a
mov esi, vtable.CFileException.0
mov dword [esp + 0x30], esi
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push ebx
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x170], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xffffffff
call fcn.004042c0
mov ebp, dword [esp + 0x170]
lea eax, [esp + 0x30]
push eax
push 0x40
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x174], 2
call fcn.00437ec0
test eax, eax
jne 0x417759
mov dword [esp + 0x30], esi
jmp 0x417b05
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x16c], 3
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
xor esi, esi
mov byte [edi + 0x1c], 3
call fcn.004381a0
test eax, eax
je 0x417a95
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp dword [eax - 0xc], ebx
je case.0x4177c3.42
movzx ecx, word [eax]
add ecx, 0xffffffd6
cmp ecx, 0x22
ja case.0x4177c3.43
movzx ecx, byte [ecx + 0x417b64]
jmp dword [ecx*4 + 0x417b5c]
cmp word [esp + 0x18], bx
jne case.0x4177c3.42
push 1
push ebx
lea ecx, [esp + 0x18]
call fcn.00402f50
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x4177b1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
movzx ecx, word [eax]
sub ecx, 0x42
je 0x41786e
sub ecx, 2
je 0x4178bc
sub ecx, 8
jne 0x417a7f
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push str.L_c__ld
push eax
call fcn.0046ad5e
add esp, 0x10
cmp eax, 2
jne 0x417a7f
mov eax, dword [esp + 0x10]
mov byte [edi + 0x1c], 4
cmp dword [eax - 0xc], ebx
jg 0x41783b
or eax, 0xffffffff
jmp 0x417855
push 0x42
push eax
call fcn.0046add9
add esp, 8
cmp eax, ebx
jne 0x41784f
or eax, 0xffffffff
jmp 0x417855
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00402f50
mov eax, dword [esp + 0x10]
cmp word [eax], 0x42
jne 0x417a7f
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jne 0x4178e7
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push ecx
push str.B__ld_B__ld_B__ld_B__ld
push eax
call fcn.0046ad5e
add esp, 0x18
sub eax, 3
je 0x4178e1
dec eax
jne 0x417a7f
mov byte [edi + 0x1c], 5
jmp 0x41790d
cmp esi, ebx
je 0x417a7f
cmp word [eax + 2], 0x44
je 0x417a7f
push ebx
push 0x44
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.00456a70
jmp 0x417a7f
mov dword [esp + 0x14], ebx
jmp 0x41790d
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push str.B__ld_B__ld_B__ld
push eax
call fcn.0046ad5e
add esp, 0x14
cmp eax, 3
jne 0x417a7f
cmp dword [esp + 0x20], ebx
jne 0x417923
cmp dword [esp + 0x24], ebx
jne 0x417923
cmp dword [esp + 0x1c], ebx
jne 0x417923
cmp esi, ebx
jmp 0x4178c9
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jg 0x417931
or eax, 0xffffffff
jmp 0x41794b
push 0x47
push eax
call fcn.0046add9
add esp, 8
cmp eax, ebx
jne 0x417945
or eax, 0xffffffff
jmp 0x41794b
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00402f50
mov eax, dword [esp + 0x10]
cmp word [eax], 0x47
jne 0x417a7f
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push str.G_c__c
push eax
call fcn.0046ad5e
add esp, 0x10
cmp eax, 2
jne 0x417a7f
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jg 0x417993
or eax, 0xffffffff
jmp 0x4179b0
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.0046add9
add esp, 8
cmp eax, ebx
jne 0x4179aa
or eax, 0xffffffff
jmp 0x4179b0
sub eax, dword [esp + 0x10]
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00402f50
mov eax, dword [esp + 0x10]
cmp word [eax], 0x44
jne 0x417a1d
mov byte [edi + 0x1c], 5
cmp word [eax + 2], 0x44
jne 0x4179e4
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x1c], 0x34
push str.DD__c
jmp 0x4179f6
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x1c], 0x33
push str.D__c
push eax
call fcn.0046ad5e
mov edx, dword [esp + 0x34]
add esp, 0xc
push ebx
push edx
lea ecx, [esp + 0x18]
call fcn.0040b800
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00402f50
mov eax, dword [esp + 0x10]
mov dx, word [eax]
movzx ecx, dx
movzx edx, dx
shl ecx, 8
sub edx, 0x4c
je 0x417a40
sub edx, 2
je 0x417a38
sub edx, 5
jne 0x417a7f
movzx eax, word [eax + 4]
add ecx, eax
jmp 0x417a46
movzx edx, word [eax + 2]
add ecx, edx
cmp word [esp + 0x18], 0x33
mov eax, dword [esp + 0x14]
jne 0x417a5d
cdq
xor eax, edx
sub eax, edx
neg eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00456b80
mov esi, 1
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x48]
call fcn.004381a0
test eax, eax
jne 0x4177a4
lea ecx, [esp + 0x44]
call fcn.00484eef
cmp ebp, ebx
movsx eax, byte [edi + 0x1c]
mov dword [0x4d0004], eax
lea esi, [edi + 0x500]
jne 0x417ab5
xor eax, eax
jmp 0x417abe
push ebp
call fcn.0046ab7c
add esp, 4
push eax
push ebp
mov ecx, esi
call fcn.004042c0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [edi + 0x4f8], ebx
mov dword [edi + 0x4fc], 1
mov byte [esp + 0x168], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417afd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x30], vtable.CFileException.0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x168], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x44]
mov dword [esp + 0x168], 0xffffffff
call fcn.00484f90
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret 4