Function at 0x41c0e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a31fb
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1f0]
xor ebp, ebp
cmp byte [eax], 0
push edi
je 0x41c11b
cmp byte [esi + 0x3c9], 0
jne 0x41c11b
mov al, 1
jmp 0x41c11d
xor al, al
mov ecx, dword [esi + 0x490]
push eax
call fcn.0042bb90
mov ecx, dword [esi + 0x490]
call fcn.0042c450
call fcn.00451bf0
mov ecx, dword [esi + 0x500]
sub ecx, eax
cmp ecx, dword [esi + 0x368]
mov ebx, 2
jbe 0x41c75b
mov ecx, dword [esi + 0x494]
call fcn.004381e0
mov ecx, dword [esi + 0x498]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.004381e0
mov ecx, dword [esi + 0x494]
push ebp
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call fcn.004389e0
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov ecx, dword [esi + 0x498]
or eax, 0xc00
mov dword [esp + 0x14], eax
push ebp
fldcw word [esp + 0x18]
fistp qword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x40], edx
fldcw word [esp + 0x14]
call fcn.004389e0
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov ecx, dword [esi + 0x4a0]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], eax
fldcw word [esp + 0x10]
call fcn.00438dd0
cmp dword [esi + 0x4f8], ebp
mov dword [esi + 0x10], eax
je 0x41c212
mov ecx, dword [esi + 0x498]
push 1
call fcn.004389e0
fcomp qword [0x4c9860]
fnstsw ax
test ah, 0x41
je 0x41c20c
cmp byte [esi + 4], 0
je 0x41c212
mov dword [esi + 0x4f8], ebp
mov cl, byte [esi + 0x380]
neg cl
sbb ecx, ecx
and ecx, 0xb4
add ecx, 0x78
cmp dword [esi + 0x4f8], ebx
mov edi, ecx
jne 0x41c245
call fcn.00451c50
sub eax, dword [esi + 0x18]
cmp eax, edi
jl 0x41c245
mov dword [esi + 0x4f8], 1
mov ecx, dword [esi + 0x494]
push 1
call fcn.004389e0
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
mov ecx, dword [esi + 0x498]
or eax, 0xc00
mov dword [esp + 0x14], eax
push 1
fldcw word [esp + 0x18]
fistp qword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
fldcw word [esp + 0x14]
call fcn.004389e0
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x14], eax
mov edx, edi
fldcw word [esp + 0x14]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fldcw word [esp + 0x10]
call fcn.00475910
mov edx, dword [esi + 0x1f8]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push ebp
push edx
mov edx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
push ecx
mov cl, byte [esi + 4]
push edx
mov dl, byte [esi + 0xc]
push eax
call fcn.00475800
cmp dword [esi + 0x32c], ebp
je 0x41c2e0
mov dword [esi + 0x4f8], ebp
jmp 0x41c3f0
cmp byte [esi + 0x380], 0
je 0x41c3cd
mov dword [esp + 0x14], 0x4e20
call fcn.00475900
mov dword [esp + 0x10], eax
cmp eax, 0x4e20
lea eax, [esp + 0x14]
jg 0x41c30d
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, 0x2710
mov dword [esp + 0x14], 0x2710
lea eax, [esp + 0x14]
jl 0x41c32a
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov edi, 1
cmp dword [esi + 0x4f8], edi
mov dword [esp + 0x10], eax
jne 0x41c356
cmp eax, 0xbb8
mov dword [esp + 0x14], 0xbb8
lea eax, [esp + 0x14]
jg 0x41c354
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi + 0x47c]
cmp ecx, ebp
mov dword [esi + 0x134], eax
je 0x41c36c
push eax
call fcn.004274f0
mov dword [esp + 0x14], 0x3a98
call fcn.004758f0
mov dword [esp + 0x10], eax
cmp eax, 0x3a98
lea eax, [esp + 0x14]
jg 0x41c38c
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, 0x1d4c
mov dword [esp + 0x14], 0x1d4c
lea eax, [esp + 0x14]
jl 0x41c3a9
lea eax, [esp + 0x10]
cmp dword [esi + 0x4f8], edi
mov eax, dword [eax]
jne 0x41c3b5
xor eax, eax
mov ecx, dword [esi + 0x47c]
cmp ecx, ebp
mov dword [esi + 0x138], eax
je 0x41c3f0
push eax
call fcn.004274e0
jmp 0x41c3f0
cmp byte [esi + 0x534], 0
jne 0x41c3f0
call fcn.00475900
push eax
mov ecx, esi
call fcn.00419350
call fcn.004758f0
push eax
mov ecx, esi
call fcn.00419370
mov ecx, dword [esi + 0x4a0]
call fcn.00438a30
mov ecx, dword [esi + 0x10]
cmp ecx, ebp
mov dword [esi + 0x38], eax
jbe 0x41c419
mov eax, dword [esi + 0x34]
xor edx, edx
div ecx
cmp eax, 0x3c00
jae 0x41c419
mov byte [esi + 0x14], 0
jmp 0x41c41d
mov byte [esi + 0x14], 1
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x44]
jbe 0x41c428
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x48]
jbe 0x41c433
mov dword [esi + 0x48], eax
lea ecx, [esp + 0x48]
call fcn.0046ffe0
test al, al
je 0x41c5e5
mov ecx, dword [esi + 0x47c]
call fcn.004276e0
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x28]
mov dword [esi + 0x12c], eax
push edx
lea eax, [esp + 0x18]
mov dword [esi + 0x130], ecx
mov ecx, dword [esi + 0x47c]
push eax
call fcn.00427c10
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x47c]
lea edx, [esp + 0x14]
push edx
mov edi, eax
call fcn.00427b20
mov ebx, dword [esp + 0x10]
sub eax, edi
mov dword [esi + 0xfc], eax
mov eax, dword [esp + 0x14]
sub ebx, eax
lea edx, [esi + 0xfc]
lea ecx, [esi + 0x100]
mov dword [ecx], edi
mov dword [esi + 0x10c], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x110], ebx
mov ebx, dword [esp + 0x18]
lea edi, [esi + 0x10c]
lea ebp, [esi + 0x110]
sub ebx, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], ebx
mov ebx, dword [ecx]
cmp ebx, dword [esi + 0x108]
lea eax, [esi + 0x108]
jae 0x41c4eb
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [edx]
cmp ecx, dword [esi + 0x104]
lea eax, [esi + 0x104]
jae 0x41c501
mov edx, eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [edi]
cmp ecx, dword [esi + 0x11c]
lea eax, [esi + 0x11c]
jae 0x41c517
mov edi, eax
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [ebp]
cmp ecx, dword [esi + 0x120]
lea eax, [esi + 0x120]
jae 0x41c52e
mov ebp, eax
mov edx, dword [ebp]
mov dword [eax], edx
mov edx, dword [esi + 0x114]
cmp edx, dword [esi + 0x124]
lea ecx, [esi + 0x114]
lea eax, [esi + 0x124]
jae 0x41c54f
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov edx, dword [esi + 0x118]
cmp edx, dword [esi + 0x128]
lea ecx, [esi + 0x118]
lea eax, [esi + 0x128]
jae 0x41c56f
mov ecx, eax
mov ecx, dword [ecx]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x158], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x154], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x144], ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x14c], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x148], edx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x150], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov eax, dword [esp + 0x80]
xor ebp, ebp
mov dword [esi + 0x160], edx
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], ecx
lea ebx, [ebp + 2]
cmp dword [esi + 8], 3
je 0x41c605
mov ecx, dword [esi + 0x47c]
push ebp
push ebp
call fcn.00427b20
test eax, eax
jg 0x41c602
mov edx, dword [esi + 0x1f0]
mov dword [esi + 8], ebx
lea edi, [esi + 0x1c0]
mov ecx, edi
call fcn.00419920
mov dword [esi + 0x1bc], eax
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x41c629
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
jne 0x41c62d
xor eax, eax
jmp 0x41c63b
cmp eax, ebp
ja 0x41c636
call fcn.0048c48f
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esi + 0x1b4], eax
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x41c655
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x41c659
xor eax, eax
jmp 0x41c65f
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
mov edx, dword [esi + 0x1d0]
mov ecx, esi
mov dword [esi + 0x1b8], eax
call edx
cmp byte [esi + 0x3a5], 0
je 0x41c683
mov ecx, dword [esi + 0x47c]
call fcn.0042aad0
mov eax, dword [esi + 0x4c8]
mov dword [esi + 0x184], eax
mov eax, dword [esi + 0x1f0]
cmp byte [eax], 0
je 0x41c6a7
cmp byte [esi + 0x3c9], 0
jne 0x41c6a7
mov al, 1
jmp 0x41c6a9
xor al, al
mov ecx, dword [esi + 0x490]
push ecx
mov ecx, dword [esi + 0x47c]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0042b960
push eax
lea ecx, [esi + 0x174]
mov dword [esp + 0xac], ebp
call fcn.0041bf00
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov dword [esp + 0xa8], 0xffffffff
je 0x41c707
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
call fcn.0041aba0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00409f10
add esp, 4
mov ecx, dword [esi + 0x1f0]
cmp byte [ecx], 0
jne 0x41c74a
cmp byte [esi + 0x1e0], 0
jne 0x41c74a
call fcn.00451c50
sub eax, dword [esi + 0x18]
jns 0x41c73a
mov edx, dword [esi + 0x1f4]
cmp byte [edx], 0
jne 0x41c74a
call fcn.00451c50
sub eax, dword [esi + 0x18]
js 0x41c74a
mov eax, dword [esi + 0x1f0]
mov byte [eax], 1
mov byte [esi + 0x505], 1
call fcn.00451bf0
add eax, dword [esi + 0x368]
mov dword [esi + 0x500], eax
mov ecx, dword [esi + 0x1f4]
cmp byte [ecx], 0
mov ecx, dword [esi + 0x47c]
jne 0x41c782
call fcn.00427550
test al, al
jne 0x41c796
mov ecx, dword [esi + 0x47c]
call fcn.00427ee0
jmp 0x41c796
call fcn.00427550
test al, al
je 0x41c796
mov ecx, dword [esi + 0x47c]
call fcn.0042aa70
mov ecx, dword [esi + 0x47c]
call fcn.0042b670
test al, al
jne 0x41c86d
mov ecx, dword [esi + 0x484]
call fcn.0042cca0
test al, al
je 0x41c86d
mov dword [esi + 0x30c], 5
call fcn.00465f70
mov edx, eax
lea ecx, [esp + 0x84]
mov dword [esi + 0x310], eax
mov dword [esi + 8], 4
call fcn.00415210
push eax
lea edx, [esp + 0x30]
push str.IO_Error_occurred__shutting_down._Error:
mov ebx, 1
push edx
mov dword [esp + 0xb4], ebx
call fcn.0040a2f0
add esp, 0xc
push eax
lea ecx, [esi + 0x268]
mov byte [esp + 0xac], 2
call fcn.00425a20
mov edi, 0x10
cmp dword [esp + 0x44], edi
jb 0x41c831
mov eax, dword [esp + 0x30]
push eax
call fcn.00409f10
add esp, 4
cmp dword [esp + 0x9c], edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
jb 0x41c85b
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00409f10
add esp, 4
mov dword [esi + 0x1e4], ebx
mov byte [esi + 0x1e1], 1
jmp 0x41cab9
lea ebx, [esi + 0x508]
mov ecx, ebx
call fcn.00444610
cmp dword [esi + 0x4c8], ebp
jbe 0x41c8dc
mov edx, dword [esi + 0x100]
add edx, dword [esi + 0xfc]
cmp edx, dword [esi + 0x338]
jae 0x41c8dc
lea edi, [esi + 0x4b8]
mov ecx, edi
call fcn.00419b90
cmp dword [eax + 0x18], 0x10
jb 0x41c8ae
mov ebp, dword [eax + 4]
jmp 0x41c8b1
lea ebp, [eax + 4]
mov ecx, edi
call fcn.00419b90
add eax, 0x20
push eax
mov ecx, edi
call fcn.00419b90
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x47c]
push eax
push ebp
call fcn.00429ea0
mov ecx, edi
call fcn.0041a880
xor ebp, ebp
mov ecx, ebx
call fcn.00444620
mov ecx, dword [esi + 0x484]
call fcn.0042ccd0
call fcn.00451bf0
sub eax, dword [esi + 0x4fc]
js 0x41c946
mov ecx, dword [esi + 0x47c]
call fcn.00427520
call fcn.00451bf0
movzx ecx, byte [esi + 0x1e0]
mov edx, dword [esi + 0x1f4]
add eax, 0x2710
push ecx
movzx ecx, byte [esi + 0x380]
mov dword [esi + 0x4fc], eax
movzx eax, byte [edx]
push eax
push ecx
mov ecx, dword [esi + 0x4cc]
call fcn.00437e00
mov ecx, dword [esi + 0x4cc]
call fcn.00437f50
cmp byte [esi + 0x314], 0
je 0x41c96c
cmp byte [esi + 0x315], 0
jne 0x41c96c
mov ecx, dword [esi + 0x4cc]
push 2
mov byte [esi + 0x315], 1
call fcn.00437eb0
cmp dword [esi + 0x318], 1
jne 0x41c9f8
mov ecx, dword [esi + 0x47c]
mov dword [esi + 0x318], ebp
call fcn.00427a30
mov ecx, dword [esi + 0x484]
call fcn.0042ccc0
mov ecx, dword [esi + 0x4a4]
call fcn.00437960
mov ecx, dword [esi + 0x480]
call fcn.0043a1a0
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esi + 0x4ac]
cmp eax, ebp
je 0x41c9f8
mov ecx, dword [esi + 0x4b0]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x41c9f8
mov ecx, dword [esi + 0x484]
push edi
call fcn.0042cc70
test al, al
je 0x41c9f3
mov ecx, dword [esi + 0x4a4]
push edi
call fcn.00436230
add edi, 1
jmp 0x41c9b0
call fcn.00451c50
sub eax, dword [esi + 0x18]
cmp eax, 0x12c
jl 0x41ca44
mov ecx, dword [esi + 0x47c]
call fcn.00427390
test al, al
jne 0x41ca44
cmp byte [esi + 0x504], al
jne 0x41ca44
mov edx, dword [esi + 0x1f4]
cmp byte [edx], al
je 0x41ca44
cmp byte [esi + 0x380], al
jne 0x41ca3d
push 1
lea ecx, [esi + 0x1c0]
call fcn.0041afd0
mov byte [esi + 0x504], 1
cmp byte [esi + 0x474], 0
lea edi, [esi + 0x1c0]
jne 0x41ca69
mov eax, dword [esi + 0x1f4]
cmp byte [eax], 0
push 6
mov ecx, edi
jne 0x41ca8c
call fcn.0041afd0
jmp 0x41ca91
mov ecx, dword [esi + 0x1f4]
cmp byte [ecx], 0
mov ecx, edi
jne 0x41ca81
push 7
call fcn.0041afd0
push 8
jmp 0x41ca8a
push 8
call fcn.0041afd0
push 7
mov ecx, edi
call fcn.004198b0
mov ecx, dword [esi + 0x47c]
call fcn.00427390
test al, al
je 0x41cab9
cmp byte [esi + 0x504], 0
je 0x41cab9
push 1
mov ecx, edi
mov byte [esi + 0x504], 0
call fcn.004198b0
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret