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

Disassembly:
sub esp, 0x270
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
call fcn.00479590
test eax, eax
jne 0x45fc24
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4606ae
lea ebp, [eax + 0x2c]
mov eax, dword [ebp]
mov ecx, dword [eax + 0xb4]
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 0x810]
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x78], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
fild dword [esp + 0x290]
mov ecx, dword [esi + 4]
fst dword [esp + 0x18]
fmul dword [esi + 0x50]
fmul dword [0x53de28]
fstp dword [esp + 0x14]
call fcn.0047c140
mov ecx, dword [eax + 8]
cmp ecx, 7
jne 0x45fc94
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ecx + 0xb4]
push edx
call fcn.0045e8c0
mov eax, dword [eax + 0x40]
add esp, 4
cmp eax, 0x3e7
je 0x45fc9a
jmp 0x45fc96
mov eax, ecx
test eax, eax
je 0x45fcc2
fld dword [esi + 0x54]
fcom dword [0x53de24]
fnstsw ax
test ah, 5
jp 0x45fcbf
fcom dword [0x53de20]
fnstsw ax
test ah, 0x41
jne 0x45fcbf
fstp st(0)
fld dword [0x53a780]
fstp dword [esi + 0x54]
mov eax, dword [esi + 8]
test eax, eax
je 0x45fd18
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
cmp ecx, dword [esi + 4]
je 0x45fd18
mov edx, dword [esi + 0x54]
mov dword [eax + 0x38], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x4c]
mov dword [ecx + 0x3c], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 0x50]
mov dword [ecx + 0x40], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov edx, dword [esi + 4]
mov dword [ecx], edx
mov ecx, esi
call fcn.0045f230
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x38]
mov byte [edx + 0x55], al
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x38]
mov dl, byte [esi + 0x30]
mov byte [ecx + 0x54], dl
push ebx
mov ebx, dword [esp + 0x280]
mov eax, dword [ebx + 0x28]
test eax, eax
push edi
jne 0x45fde4
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], 2
mov dword [esp + 0x104], 0
mov dword [esp + 0x114], 0xffffffff
mov dword [esp + 0x118], 0x7fffffff
mov dword [esp + 0x10c], 0x20000000
mov al, byte [eax + 2]
movzx edi, al
push edi
lea eax, [esp + 0x184]
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x104], 3
call fcn.004835b0
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + edi + 0x184], 0
call fcn.004350d0
mov eax, dword [ebp]
mov ecx, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x74]
push edx
push eax
call fcn.0045e650
test eax, eax
mov dword [ebx + 0x28], eax
jne 0x45fdd7
mov eax, dword [esp + 0x70]
push eax
call fcn.00527b30
add esp, 4
jmp 0x4606a1
mov edx, dword [esp + 0x70]
push edx
call fcn.00527b30
add esp, 4
mov eax, dword [esp + 0x294]
movzx ecx, byte [eax]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 1]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul dword [0x53de1c]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fmul dword [0x53de18]
faddp st(1)
fild dword [esp + 0x18]
fmul dword [0x53de14]
faddp st(1)
fcomp dword [0x53de10]
fnstsw ax
test ah, 0x41
jne 0x45fe38
mov edi, 1
jmp 0x45fe3a
xor edi, edi
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
mov dword [esp + 0xb8], 0x41800000
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0x3f000000
mov dword [esp + 0xc4], 0xbf0f5c29
mov dword [esp + 0xc8], 0x3f800000
call fcn.0045ee90
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45fed5
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x45fed5
cmp edi, 1
jne 0x45fed5
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0045ee90
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45fed5
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x45fed5
lea eax, [esp + 0xa4]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
test ecx, ecx
mov dword [esp + 0x54], 0x41800000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0x3f000000
mov dword [esp + 0x60], 0xbf0f5c29
mov dword [esp + 0x64], 0x3f800000
je 0x45ff1f
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 4]
push eax
lea edx, [esp + 0x5c]
push edx
push ebp
call fcn.0047c140
mov ecx, eax
call fcn.0045e2d0
mov eax, dword [esp + 0x29c]
fild dword [eax]
lea ecx, [esp + 0x4c]
fstp dword [esp + 0x4c]
fild dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0x34]
fstp dword [esp + 0x58]
call fcn.00436f90
fld dword [esi + 0x54]
fmul qword [0x53de08]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
fistp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cdq
mov ecx, 0x5a
idiv ecx
test edx, edx
jne 0x45ffd1
fld dword [esp + 0x24]
fmul dword [0x53a78c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x18]
fild dword [esp + 0x18]
mov ecx, esi
fmul dword [0x53de04]
fstp dword [esp + 0x24]
call fcn.0045f230
test eax, eax
jne 0x45ffbb
fld dword [esp + 0x28]
fmul dword [0x53a78c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x18]
fild dword [esp + 0x18]
fmul dword [0x53de04]
jmp 0x45ffd5
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x1c]
fistp dword [esp + 0x18]
fild dword [esp + 0x18]
jmp 0x45ffd5
fld dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fchs
fst dword [esp + 0x28]
mov dword [esp + 0xc0], eax
fstp dword [esp + 0xc4]
fld dword [esp + 0x20]
fmul dword [0x53de00]
fst dword [esp + 0x4c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x20]
mov ecx, dword [esi + 0x4c]
fild dword [esp + 0x20]
mov edx, dword [esi + 0x50]
mov eax, dword [esp + 0x24]
fmul dword [0x53de04]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xd4], edx
mov edx, dword [esi + 0x54]
fstp dword [esp + 0xc8]
mov dword [esp + 0xd8], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0xcc], 0x48
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
call fcn.0047c140
mov ecx, dword [eax + 8]
cmp ecx, 7
jne 0x46009a
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x5c]
mov ecx, dword [eax + 0xb4]
push ecx
call fcn.0045e8c0
mov eax, dword [eax + 0x40]
add esp, 4
cmp eax, 0x3e7
jne 0x46009c
mov eax, 1
jmp 0x46009c
mov eax, ecx
fld dword [esp + 0xc8]
mov edx, dword [esp + 0x5c]
fmul dword [esi + 0x50]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x60]
fcomp dword [0x53dd68]
mov dword [esp + 0xf0], eax
movzx eax, word [esp + 0x28c]
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0x288]
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov edx, dword [ecx]
fnstsw ax
test ah, 1
mov ebx, dword [edx + 0x1b8]
jne 0x460103
mov ebx, 7
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x70], ebx
mov edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x60]
test eax, eax
lea edi, [esi + 0x58]
mov dword [esp + 0x74], edx
jle 0x46012d
mov dword [edi + 0x14], 0
mov byte [edi + 0xc], 0
mov eax, dword [esi + 0x1c]
fld dword [eax + 0x50]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 8]
jge 0x460163
fmul dword [0x53d200]
mov byte [edi + 0xc], 0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x20]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
inc dword [edi + 0x14]
jmp 0x460165
fstp st(0)
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x46017a
mov edx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [edx + eax*4], ebx
inc dword [edi + 0x14]
mov eax, dword [esi + 0x1c]
fld dword [eax + 0x4c]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 8]
jge 0x4601b0
fmul dword [0x53d200]
mov byte [edi + 0xc], 0
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x20]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
inc dword [edi + 0x14]
jmp 0x4601b2
fstp st(0)
mov al, byte [edi + 0xc]
test al, al
je 0x4601be
mov eax, dword [edi + 0x10]
jmp 0x4601d9
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x4601d7
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045d870
mov eax, dword [eax]
jmp 0x4601d9
xor eax, eax
mov ebp, dword [esi + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4601ee
mov ecx, ebp
call fcn.0045dc70
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 4]
mov ebp, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x44]
push edx
push ebp
push eax
call fcn.00502310
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
jne 0x460542
mov eax, dword [edi + 8]
xor ebp, ebp
cmp ebx, 7
mov ebx, dword [esp + 0x44]
jne 0x46030f
cmp eax, ebp
jle 0x46023a
mov dword [edi + 0x14], ebp
mov byte [edi + 0xc], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x50]
push ecx
mov ecx, edi
call fcn.0045e140
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1b8]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x460269
mov edx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [edx + eax*4], ecx
inc dword [edi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x4c]
push ecx
mov ecx, edi
call fcn.0045e140
mov al, byte [edi + 0xc]
test al, al
je 0x460283
mov edi, dword [edi + 0x10]
jmp 0x46029e
mov ecx, dword [edi + 0x14]
cmp ecx, ebp
jle 0x46029c
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045d870
mov edi, dword [eax]
jmp 0x46029e
xor edi, edi
mov dword [esp + 0x44], edi
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x4602b1
mov ecx, edi
call fcn.0045dc70
mov ecx, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x1c]
push 1
lea eax, [esp + 0x44]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00502310
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp ecx, 1
jne 0x4603b5
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x4602ec
mov ecx, edi
call fcn.0045dc70
mov edx, dword [edi + 8]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
call fcn.005025c0
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x4603b5
cmp eax, ebp
jle 0x46031a
mov dword [edi + 0x14], ebp
mov byte [edi + 0xc], 0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x50]
push eax
mov ecx, edi
call fcn.0045e140
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 8]
jge 0x460341
mov ecx, dword [edi + 4]
mov byte [edi + 0xc], 0
mov dword [ecx + eax*4], 7
inc dword [edi + 0x14]
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, edi
call fcn.0045e140
mov al, byte [edi + 0xc]
test al, al
je 0x46035b
mov edi, dword [edi + 0x10]
jmp 0x460376
mov ecx, dword [edi + 0x14]
cmp ecx, ebp
jle 0x460374
mov edx, dword [edi + 4]
lea eax, [edi + 0x10]
shl ecx, 2
call fcn.0045d870
mov edi, dword [eax]
jmp 0x460376
xor edi, edi
mov dword [esp + 0x44], edi
mov edi, dword [esi + 0x1c]
cmp dword [edi + 8], ebp
jne 0x460389
mov ecx, edi
call fcn.0045dc70
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
push 1
lea ecx, [esp + 0x44]
push ecx
push edi
push eax
call fcn.00502310
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp ecx, 1
jne 0x4603b5
mov dword [esp + 0x20], eax
cmp ecx, ebp
mov dword [esp + 0x44], ebx
jne 0x460500
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x284]
mov cx, word [esp + 0x28c]
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x100], eax
mov eax, dword [edx]
mov eax, dword [eax + 0xb4]
mov word [esp + 0x104], cx
mov ebx, 0x53dd7c
push eax
lea ecx, [esp + 0xfc]
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x10c], 0
mov byte [esp + 0x110], 0
call fcn.0045e930
test al, al
je 0x4604e8
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0xb4]
mov edi, dword [esp + 0x108]
mov ecx, dword [esp + 0x284]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0045f940
lea edx, [esp + 0x11c]
push edx
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x154]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd0]
push eax
push edi
push edx
call fcn.005036c0
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x8c]
push ecx
push edi
push eax
call fcn.00500de0
mov edi, dword [esi + 0x1c]
mov ebp, eax
mov eax, dword [edi + 8]
add esp, 0x28
test eax, eax
jne 0x4604a7
mov ecx, edi
call fcn.0045dc70
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 8]
push ebp
lea edx, [esp + 0x40]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00502430
mov eax, dword [0x560ba4]
add esp, 0x14
inc eax
lea ecx, [esp + 0xf8]
mov dword [0x560ba4], eax
mov dword [esp + 0xf8], ebx
call fcn.0045e080
jmp 0x460582
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf8], ebx
call fcn.0045e080
jmp 0x4606a1
lea edx, [esp + 0x11c]
push edx
lea eax, [esi + 0x70]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x154]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esp + 0xd0]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00502d00
mov eax, dword [0x560ba8]
add esp, 0x1c
inc eax
mov dword [0x560ba8], eax
jmp 0x460584
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esi + 0x70]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x154]
push ecx
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0xd0]
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00502d00
mov eax, dword [0x560ba8]
add esp, 0x1c
inc eax
mov dword [0x560ba8], eax
xor ebp, ebp
mov al, byte [esp + 0x2a0]
test al, al
jne 0x4606a1
mov eax, dword [esp + 0x36]
fld dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
fmul dword [0x53a78c]
add ecx, eax
neg ecx
mov word [esp + 0x84], cx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
add edx, eax
mov eax, dword [esp + 0x294]
xor ecx, ecx
mov ch, byte [eax + 3]
mov word [esp + 0x86], dx
movzx edx, byte [eax + 1]
mov cl, byte [eax]
movzx eax, byte [eax + 2]
shl ecx, 8
or ecx, edx
mov dx, word [esp + 0x28c]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x288]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x284]
mov dword [esp + 0x90], ecx
mov word [esp + 0x94], dx
mov dword [esp + 0x98], eax
fld dword [esp + 0x1c]
fistp dword [esp + 0x20]
fld dword [esp + 0x28]
fmul dword [0x53a78c]
mov cx, word [esp + 0x20]
mov word [esp + 0x9c], cx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fistp dword [esp + 0x20]
mov dx, word [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov word [esp + 0x9e], dx
mov dword [esp + 0x4c], eax
fld dword [esp + 0x4c]
fistp dword [esp + 0x1c]
mov esi, dword [esi + 8]
cmp esi, ebp
mov cx, word [esp + 0x1c]
mov word [esp + 0xa0], cx
mov dword [esp + 0x8c], ebp
mov word [esp + 0x80], bp
mov word [esp + 0x82], bp
je 0x4606a1
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.00456ed0
mov ecx, dword [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x270
ret 0x20