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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x524258
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58569c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x58569c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x34]
test edx, edx
jne 0x47940a
mov eax, 0x80004005
jmp 0x47976f
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x479400
mov eax, dword [esi + 0xa0]
test al, 0x20
jne 0x479428
mov eax, 1
jmp 0x47976f
and eax, 0xffffffdf
cmp dword [esi + 0x5c], 3
mov dword [esi + 0xa0], eax
jne 0x4794d2
mov edx, 0x7fffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x14]
push edx
push ecx
call eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x174]
push eax
call edx
fld dword [esi + 0x40]
mov ebx, eax
fimul dword [ebx]
push ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
fld dword [esi + 0x4c]
mov dword [esi + 0x60], eax
fimul dword [ebx + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
mov dword [esi + 0x64], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
mov dword [esp + 0x48], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax]
mov edx, dword [edx + 0x10c]
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
push eax
call edx
jmp 0x4795f7
or eax, 0xffffffff
cmp dword [ebp + 8], eax
jne 0x4794f9
cmp dword [ebp + 0xc], eax
jne 0x4794f9
lea eax, [esp + 0x4c]
push eax
push edx
call dword [0x52b55c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
fild dword [ebp + 8]
push ecx
fdiv dword [esi + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
fild dword [ebp + 0xc]
mov edi, eax
fdiv dword [esi + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
mov ecx, dword [esi + 0x5c]
add esp, 4
mov edx, 0x7fffffff
mov dword [esp + 0x14], edx
cmp ecx, 1
je 0x479540
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
cmp ecx, 2
je 0x47954d
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x108]
call eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x174]
push eax
call edx
mov ebx, eax
fild dword [ebx]
push ecx
fmul dword [esi + 0x40]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
mov dword [esi + 0x60], eax
fild dword [ebx + 4]
fmul dword [esi + 0x4c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.004657f0
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x5c]
add esp, 4
cmp eax, 1
jne 0x4795bb
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jmp 0x4795c7
cmp eax, 2
jne 0x4795c7
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x10c]
call eax
or dword [esi + 0xa0], 0x10
mov ecx, esi
call fcn.004790e0
mov ebx, dword [esi + 0x70]
cmp ebx, dword [esi + 0x74]
je 0x479752
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x178]
push eax
call edx
mov ecx, dword [eax]
mov dword [esp + 0x14], eax
cmp ecx, dword [ebx + 4]
je 0x479693
mov eax, dword [ebx]
mov edx, 3
mov word [esp + 0x2c], dx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], 0
mov ecx, dword [ebx + 4]
mov word [esp + 0x3c], dx
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x78], 1
mov ecx, dword [eax]
push 0x413
push eax
mov eax, dword [ecx + 0xf4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0
mov edi, dword [0x52b41c]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x74], 0xffffffff
call edi
mov eax, dword [esp + 0x14]
jmp 0x479699
mov edi, dword [0x52b41c]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 8]
je 0x479702
mov eax, dword [ebx]
mov edx, 3
mov word [esp + 0x4c], dx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x70], 2
mov ecx, dword [ebx + 8]
mov word [esp + 0x1c], dx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x70], dl
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
lea edx, [esp + 0x20]
push edx
push 0x412
push eax
mov eax, dword [ecx + 0xf4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x74], 2
call edi
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x74], 0xffffffff
call edi
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 4]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
call fcn.00464dc0
mov dword [esp + 0x70], 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
push ecx
push 0x13e5
push eax
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x479746
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
add ebx, 0xc
cmp ebx, dword [esi + 0x74]
jne 0x479611
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
lea eax, [esi + 0x70]
push ecx
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.004a4750
call fcn.004792f0
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004fe191
mov esp, ebp
pop ebp
ret 8