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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005850e7
test eax, 0x200000
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0x1c
mov dword [esp + 0x28], 7
je 0x46a593
mov eax, dword [esi + 0x3c]
mov ebp, dword [esi + 0x50]
cdq
idiv ebp
xor bl, bl
xor edi, edi
mov dword [esp + 0x2c], edi
mov ecx, eax
mov eax, dword [esi + 0x54]
dec ecx
lea edx, [eax - 1]
mov dword [esp + 0x30], ecx
cmp ecx, edx
jge 0x46a4d5
mov eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov bl, al
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x46a526
mov eax, dword [esi + 0x44]
mov ecx, esi
push eax
mov dword [esi + 0x40], edi
call fcn.0046b0b0
jmp 0x46a51e
mov edi, dword [esi + 0x40]
lea edx, [eax - 1]
sub ecx, eax
mov eax, edi
mov dword [esp + 0x34], edx
add ecx, 2
cdq
idiv ebp
cmp eax, ecx
jle 0x46a51c
test edi, edi
jle 0x46a51c
mov eax, dword [esi + 0x44]
sub edi, ebp
push eax
mov ecx, esi
mov dword [esi + 0x40], edi
call fcn.0046b0b0
mov edi, dword [esi + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x54]
mov ebp, dword [esi + 0x50]
mov eax, edi
sub ecx, edx
cdq
idiv ebp
add ecx, 2
cmp eax, ecx
jg 0x46a4ed
xor edi, edi
cmp dword [esi + 0x40], edi
jge 0x46a526
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x40]
push edi
cdq
idiv dword [esi + 0x50]
push 0x200000
push edi
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.0058511b
test bl, bl
jne 0x46a562
lea edx, [esp + 0x24]
push 1
push edx
push 1
mov ecx, esi
call fcn.00583af8
mov eax, dword [esi + 0x1c]
push edi
push 1
push eax
call dword [str._WvS]
jmp 0x46a595
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
inc ecx
push 1
mov dword [esp + 0x34], ecx
push edx
push 1
mov ecx, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
call fcn.00583af8
mov eax, dword [esi + 0x1c]
push 3
push 1
push eax
call dword [str._WvS]
jmp 0x46a595
xor edi, edi
test dword [esp + 0x10], 0x100080
je 0x46a67f
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x623438]
mov eax, dword [esi + 0x74]
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x46a5cf
mov eax, dword [esi + 0x80]
neg eax
sbb eax, eax
and eax, 4
add eax, 5
jmp 0x46a5d1
xor eax, eax
cmp dword [esi + 0x7c], edi
je 0x46a5de
mov ecx, dword [esi + 0x50]
lea edx, [ecx + ecx*2]
jmp 0x46a5e0
xor edx, edx
cmp dword [esi + 0x78], edi
je 0x46a5ea
mov ecx, dword [esi + 0x50]
jmp 0x46a5ec
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
lea edi, [ecx + edx]
mov ecx, dword [esi + 0x5c]
add edi, eax
test ecx, ecx
mov dword [esp + 0x30], edi
jne 0x46a60e
mov dword [esp + 0x34], 1
jmp 0x46a621
mov eax, ebp
sub eax, ebx
cdq
idiv ecx
cmp eax, edi
mov dword [esp + 0x34], eax
jl 0x46a621
mov dword [esp + 0x34], edi
imul ecx, edi
sub ebp, ebx
xor eax, eax
cmp ecx, ebp
mov ebp, dword [esp + 0x10]
setge al
and ebp, 0x80
mov dword [esp + 0x38], 0
mov edi, eax
je 0x46a650
mov ecx, dword [esi + 0x1c]
push edi
push 0
push ecx
call dword [0x623248]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
and ecx, 0xfffffffb
push 1
mov dword [esp + 0x2c], ecx
push edx
push 0
mov ecx, esi
call fcn.00583af8
test edi, edi
je 0x46a67f
test ebp, ebp
jne 0x46a67f
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push eax
call dword [str._WvS]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret