Function at 0x413dfd
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x413e2b
cmp dword [ebp + 0x10], ebx
jne 0x413e2b
cmp dword [ebp + 0x14], ebx
jne 0x413e2b
cmp dword [ebp + 0x18], ebx
jne 0x413e2b
push dword [ebp + 8]
call fcn.0040bfe2
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
and eax, 0x10000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
and eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 1
and eax, 0x20
mov dword [ebp - 0x34], eax
call dword [0x494480]
cmp dword [0x4ace9c], ebx
mov dword [ebp - 0x10], eax
jne 0x413e82
push 0x4973a0
push 0x497398
call dword [fcn.004943c4]
push eax
call dword [fcn.00494450]
mov dword [0x4ace9c], eax
mov esi, 0x4ad684
push esi
call dword [fcn.004944b0]
test byte [0x4ada94], 4
jne 0x413eb1
cmp dword [ebp + 0x10], ebx
je 0x413eb1
or byte [0x4ada94], 8
push 2
push 0x4949b8
call fcn.0040f24d
pop ecx
pop ecx
push esi
call dword [fcn.004944ac]
push 0x46e7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00435d80
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
add eax, 0xa0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], eax
add eax, 0x64
lea edi, [eax + 0x8c]
push ebx
push 0x24
mov dword [ebp - 0x20], edi
add edi, 0x80a
push edi
mov word [edi + 0x414], bx
push ebx
mov word [edi], bx
call dword [fcn.00494540]
mov esi, dword [fcn.004944c4]
push edi
call esi
cmp dword [ebp + 0x10], ebx
lea eax, [edi + eax*2]
mov dword [ebp - 0x48], eax
je 0x413f9f
push 7
pop ecx
xor eax, eax
cmp byte [0x4acb89], 1
push 0x4d
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2fc]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x1c8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
mov edi, 0x138
jne 0x413f5a
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x78]
push eax
push 3
call dword [0x4ace9c]
push ebx
push edi
lea eax, [ebp - 0x300]
push eax
push 2
call dword [0x4ace9c]
push dword [ebp - 0x2fc]
push dword [ebp - 0x300]
push dword [ebp - 0x1c]
call fcn.004752d0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x18]
call fcn.004752d0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
jne 0x41407a
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x41407a
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0044042b
push 0x497394
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00435dd0
cmp byte [0x4acbb4], bl
ja 0x413fe4
call fcn.00403d18
movzx eax, byte [0x4acbb4]
push eax
lea eax, [ebp - 0x378]
push 0x497388
push eax
call dword [fcn.0049477c]
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
mov ecx, edi
call fcn.00435dd0
push dword [0x4acc34]
lea eax, [ebp - 0x378]
push dword [0x4acc30]
push eax
call fcn.004752d0
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
mov ecx, edi
call fcn.00435dd0
fild qword [0x4acc30]
lea ecx, [ebp - 8]
fdivr qword [0x497380]
fstp qword [ebp - 0x28]
call fcn.00435d62
fld qword [ebp - 0x28]
push 0x497370
push ecx
push ecx
lea eax, [ebp - 8]
fstp qword [esp]
push eax
call fcn.00475240
add esp, 0x10
push dword [ebp - 8]
mov ecx, edi
call fcn.00435dd0
lea ecx, [ebp - 8]
call fcn.0043092f
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
mov esi, eax
push 2
mov dword [ebp - 0x44], esi
call fcn.0047fd56
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
jne 0x41409b
xor eax, eax
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x414150
lea ecx, [ebp - 0x2bc]
push ecx
push eax
mov dword [ebp - 0x2bc], 0x22c
call fcn.0047fd50
test eax, eax
je 0x414150
jmp 0x4140cb
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4140de
cmp eax, dword [ebp - 0x2a4]
jne 0x41443d
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4140f1
cmp eax, dword [ebp - 0x2b4]
jne 0x41443d
cmp dword [ebp - 0x34], ebx
jne 0x41424a
cmp dword [ebp - 0x40], ebx
je 0x4141cd
cmp dword [ebp + 0xc], ebx
je 0x414168
cmp esi, ebx
je 0x41412a
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
je 0x41443d
cmp dword [ebp + 0x10], ebx
jne 0x414247
cmp dword [ebp - 0x14], ebx
je 0x414147
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2b4]
je 0x41443d
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x3c]
call fcn.00402b27
lea ecx, [ebp - 0x2c]
call fcn.0043092f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, ebx
jne 0x41417e
cmp word [ebp - 0x298], bx
jne 0x41443d
jmp 0x41424a
cmp dword [ebp - 0xc], ebx
jne 0x414197
push dword [ebp + 8]
lea eax, [ebp - 0x298]
push eax
call dword [fcn.0049449c]
test eax, eax
je 0x4141af
push dword [ebp + 8]
lea eax, [ebp - 0x298]
push eax
call dword [fcn.00494498]
test eax, eax
jne 0x41443d
cmp dword [ebp + 0x10], ebx
jne 0x414247
cmp dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x2b4]
je 0x41414d
cmp dword [ebp - 0x10], eax
jne 0x41414d
jmp 0x41443d
cmp dword [ebp + 0xc], ebx
je 0x4141f8
cmp esi, ebx
je 0x41412a
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
jne 0x41412a
cmp esi, ebx
je 0x41443d
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
je 0x41443d
cmp dword [ebp + 0xc], ebx
jne 0x41443d
mov ax, word [ebp + esi*2 - 0x298]
cmp ax, bx
je 0x41412a
cmp ax, 0x2e
jne 0x41443d
jmp 0x41412a
inc dword [ebp - 4]
push dword [ebp - 0x2b4]
mov dword [ebp - 0x28], ebx
push ebx
push 0x400
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call dword [fcn.004943e8]
mov esi, eax
cmp esi, ebx
je 0x4142f0
push ebx
push 0x4acd84
push 0x494c14
push 0x497358
call fcn.00431911
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x78]
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4acd84]
cmp eax, ebx
je 0x4142ad
push 0x28
lea ecx, [ebp - 0x80]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x74]
shr eax, 0xa
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [0x49421c]
test eax, eax
je 0x4142e9
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
adc eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
push esi
call dword [fcn.004944a8]
mov edi, dword [ebp - 0x20]
add edi, 0x80a
lea esi, [edi + 0x20a]
push esi
push dword [ebp - 0x2b4]
mov dword [ebp - 8], esi
call fcn.00403d89
cmp word [esi], 0x5c
pop ecx
pop ecx
jne 0x41433f
cmp word [esi + 2], 0x3f
jne 0x41433f
cmp word [esi + 4], 0x3f
jne 0x41433f
cmp word [esi + 6], 0x5c
jne 0x41433f
lea eax, [esi + 8]
cmp word [eax], bx
je 0x41433f
cmp word [esi + 0xa], 0x3a
jne 0x41433f
mov dword [ebp - 8], eax
jmp 0x414361
push 0xc
push esi
push 0x49733c
call dword [fcn.00494578]
test eax, eax
jne 0x414361
lea eax, [esi + 0x16]
push eax
push dword [ebp - 0x48]
call dword [0x494494]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x34], ebx
je 0x41439b
cmp dword [ebp - 0xc], ebx
jne 0x41437b
push dword [ebp + 8]
push dword [ebp - 8]
call dword [fcn.0049449c]
test eax, eax
je 0x41438f
push dword [ebp + 8]
push dword [ebp - 8]
call dword [fcn.00494498]
test eax, eax
jne 0x41443d
cmp dword [ebp + 0x10], ebx
je 0x4141b8
inc dword [ebp - 4]
push 0x8000
add esi, 0x20a
push esi
push dword [ebp - 0x2b4]
call fcn.0040af3e
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x28]
add edi, 0x64
push edi
mov word [esi + 0x8000], bx
call fcn.004752d0
add esp, 0x18
cmp dword [ebp - 0x2b4], ebx
mov eax, edi
jne 0x4143db
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2b4]
push 0x497314
push dword [ebp - 0x20]
call dword [fcn.0049477c]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add esp, 0x1c
cmp word [eax], bx
je 0x414415
push 0x494d34
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 8]
mov ecx, edi
call fcn.00435dd0
push 0x497394
mov ecx, edi
call fcn.00435dd0
push esi
mov ecx, edi
call fcn.00435dd0
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x38]
call fcn.0047fd4a
test eax, eax
jne 0x4140c8
jmp 0x414150