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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4ea9ea
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x14]
lea esi, [edi + 0x26]
push esi
lea eax, [esp + 0x64]
push eax
call fcn.0045d160
mov ecx, dword [esp + 0x60]
mov eax, dword [edi + 0x14]
mov ebp, dword [eax + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x46dc1a
cmp ecx, eax
je 0x46dc1f
call fcn.004c000c
cmp dword [esp + 0x64], ebp
jne 0x46dd32
lea ecx, [esp + 0x24]
mov word [esp + 0x1c], bx
mov dword [esp + 0x1e], ebx
mov word [esp + 0x22], bx
call fcn.0045c040
mov dword [esp + 0x28], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov cx, word [esi]
mov edx, dword [esi + 2]
mov ax, word [esi + 6]
mov word [esp + 0x1c], cx
mov dword [esp + 0x1e], edx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x144], ebx
mov dword [esp + 0x54], edx
call fcn.0045f110
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x148], 1
call fcn.00468050
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
mov ebp, ecx
push ebp
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x154], bl
call fcn.0045e420
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004aef39
mov ecx, dword [edi + 0x14]
add esp, 4
push esi
lea edx, [esp + 0x34]
push edx
call fcn.0045d160
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x6c], edx
mov edx, dword [eax]
push edx
mov ebp, ecx
push ebp
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x154], 0xffffffff
call fcn.0045e420
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004aef39
add esp, 4
mov ecx, dword [edi + 0x10]
push esi
lea edx, [esp + 0x48]
push edx
call fcn.0045d160
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
je 0x46dd56
cmp ecx, eax
je 0x46dd5b
call fcn.004c000c
mov ebp, dword [esp + 0x48]
cmp ebp, dword [esp + 0x40]
jne 0x46de75
lea ecx, [esp + 0x24]
mov word [esp + 0x1c], bx
mov dword [esp + 0x1e], ebx
mov word [esp + 0x22], bx
call fcn.0045c000
mov dword [esp + 0x28], eax
mov byte [eax + 0x3d], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov cx, word [esi + 6]
mov dx, word [esi]
mov eax, dword [esi + 2]
mov word [esp + 0x22], cx
mov dword [esp + 0x1e], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
mov word [esp + 0x1c], dx
mov edx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x144], 2
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.004685c0
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x148], 3
call fcn.0046dad0
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebp, ecx
push edx
push ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
mov byte [esp + 0x154], 2
call fcn.004614e0
mov edx, dword [esp + 0x58]
push edx
call fcn.004aef39
mov ecx, dword [edi + 0x10]
add esp, 4
push esi
lea eax, [esp + 0x34]
push eax
call fcn.0045d160
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x28]
push ecx
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x154], 0xffffffff
call fcn.004614e0
mov eax, dword [esp + 0x28]
push eax
call fcn.004aef39
add esp, 4
mov esi, dword [esp + 0x44]
cmp esi, ebx
jne 0x46de82
call fcn.004c000c
cmp ebp, dword [esi + 4]
jne 0x46de8c
call fcn.004c000c
lea eax, [edi + 0x20]
push eax
lea edx, [esp + 0x40]
lea ecx, [ebp + 0x14]
push edx
call fcn.0045c790
cmp ebp, dword [esi + 4]
jne 0x46dea7
call fcn.004c000c
mov ecx, dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x46debd
cmp ecx, eax
je 0x46dec2
call fcn.004c000c
mov esi, dword [esp + 0x40]
cmp esi, dword [esp + 0x34]
jne 0x46e041
fldz
mov dword [esp + 0x74], ebx
fst qword [esp + 0x68]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov word [esp + 0x80], bx
mov dword [esp + 0x82], ebx
mov dword [esp + 0x86], ebx
mov dword [esp + 0x8a], ebx
mov dword [esp + 0x8e], ebx
sub esp, 0x2c
mov esi, esp
lea edx, [esp + 0x9c]
fstp qword [esi]
mov dword [esp + 0x68], esp
push edx
lea ecx, [esi + 8]
mov dword [esp + 0x170], 4
call fcn.00460050
mov ax, word [esp + 0xac]
mov word [esi + 0x18], ax
mov ecx, dword [esp + 0xae]
mov dword [esi + 0x1a], ecx
mov edx, dword [esp + 0xb2]
mov dword [esi + 0x1e], edx
mov eax, dword [esp + 0xb6]
mov dword [esi + 0x22], eax
mov ecx, dword [esp + 0xba]
mov dword [esi + 0x26], ecx
mov edx, dword [edi + 0x20]
mov cx, word [edi + 0x24]
sub esp, 8
mov eax, esp
lea esi, [edi + 0x20]
mov dword [eax], edx
lea edx, [esp + 0x108]
push edx
mov word [eax + 4], cx
call fcn.00464ad0
add esp, 0x38
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x144], 5
call fcn.004616a0
mov eax, dword [esp + 0x44]
cmp ebp, dword [eax + 4]
mov byte [esp + 0x140], 6
jne 0x46dfb0
call fcn.004c000c
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [ebp + 0x14]
call fcn.00467f60
mov eax, dword [esp + 0xb6]
cmp eax, ebx
je 0x46dfd9
push eax
call fcn.004aef39
add esp, 4
mov eax, dword [esp + 0xe6]
cmp eax, ebx
mov dword [esp + 0xb6], ebx
mov dword [esp + 0xba], ebx
mov dword [esp + 0xbe], ebx
je 0x46e002
push eax
call fcn.004aef39
add esp, 4
mov eax, dword [esp + 0x44]
cmp ebp, dword [eax + 4]
jne 0x46e010
call fcn.004c000c
push esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0x14]
call fcn.0045c790
mov ebp, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x74]
cmp eax, ebx
mov dword [esp + 0x140], 0xffffffff
je 0x46e045
push eax
call fcn.004aef39
add esp, 4
jmp 0x46e045
mov ebp, dword [esp + 0x3c]
cmp ebp, ebx
jne 0x46e04e
call fcn.004c000c
cmp esi, dword [ebp + 4]
jne 0x46e058
call fcn.004c000c
fld qword [esi + 0x12]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x3c]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, edi
call fcn.00461090
lea eax, [esp + 0x94]
push eax
call fcn.004c14f2
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
add esp, 4
push ebx
push 0x3e8
push ecx
push edx
call fcn.004c1500
mov ecx, eax
movzx eax, word [esp + 0x9c]
mov edi, edx
cdq
add ecx, eax
adc edi, edx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x2a], 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret