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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [eax + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x50], eax
test esi, esi
jle 0x46ca8a
mov eax, ecx
sub eax, edi
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x50]
mov dword [eax + 0x1c], esi
jmp 0x46ca8d
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x46ca9d
mov dword [eax + 0x1c], 1
mov esi, 1
mov eax, ecx
mov dword [esp + 0x14], 0
sub eax, edi
mov dword [esp + 0x28], 0
cdq
idiv esi
mov edx, dword [ebp + 0x14]
imul esi, eax
mov dword [esp + 0x5c], eax
mov eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], 0
sub eax, esi
sub eax, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], eax
mov eax, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], esi
mov edx, dword [eax + 0x288]
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
test edx, edx
je 0x46cb07
mov edx, dword [edx + 0x1f0]
jmp 0x46cb16
cmp dword [0x52a150], 0
je 0x46cb28
mov edx, dword [0x521438]
cmp edx, 0x64
je 0x46cb28
push 0x64
push edx
push esi
call eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [esp + 0x44], edi
cmp edi, dword [eax + 4]
je 0x46d48d
nop word [eax + eax]
mov esi, dword [edi]
mov ecx, esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], esi
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x46d477
cmp dword [esi + 0x290], 0
je 0x46cb8a
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0xb8]
mov eax, esp
mov edx, esi
movups xmmword [eax], xmm0
call fcn.0045c630
add esp, 0x10
jmp 0x46d477
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x46cb9f
dec ecx
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x30], 0
lea ecx, [eax + 1]
cmovle ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x50]
add ecx, 0x1c
cdq
mov dword [esp + 0x54], ecx
idiv dword [ecx]
test edx, edx
jne 0x46d0a9
mov eax, dword [esp + 0x34]
mov esi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax + 4]
je 0x46d0a5
mov edi, dword [esp + 0x18]
mov ecx, dword [esi]
mov dword [esp + 0x30], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x46d096
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x290], 0
jne 0x46d096
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call fcn.0043bf90
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x78]
sub ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x34]
je 0x46cc44
mov edi, dword [esp + 0x54]
inc eax
cdq
idiv dword [edi]
mov edi, dword [esp + 0x18]
test edx, edx
je 0x46cc44
sub ecx, dword [esp + 0x24]
jmp 0x46cc4f
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [edi + 0x29c]
mov dword [esp + 0x14], ecx
cmp eax, 0x7ffffffe
ja 0x46cc99
mov edx, dword [edi + 0x288]
test edx, edx
je 0x46cc77
mov edx, dword [edx + 0x1f0]
cmp edx, 0x64
je 0x46cc99
jmp 0x46cc8b
cmp dword [0x52a150], 0
mov edx, dword [0x521438]
je 0x46cc9f
cmp edx, 0x64
je 0x46cc9f
push 0x64
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x521438]
cmp ecx, eax
jge 0x46ccf1
mov ecx, dword [edi + 0x29c]
mov dword [esp + 0x14], ecx
cmp ecx, 0x7ffffffe
ja 0x46ccf1
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46cccf
mov eax, dword [eax + 0x1f0]
cmp eax, 0x64
je 0x46ccf1
push 0x64
push eax
jmp 0x46cce0
cmp dword [0x52a150], 0
je 0x46ccf1
cmp edx, 0x64
je 0x46ccf1
push 0x64
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [0x521438]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x2a4]
test eax, eax
js 0x46cdda
cmp eax, 0x7fffffff
jge 0x46cd46
mov ecx, dword [edi + 0x288]
test ecx, ecx
je 0x46cd20
mov ecx, dword [ecx + 0x1f0]
cmp ecx, 0x64
je 0x46cd46
push 0x64
push ecx
jmp 0x46cd31
cmp dword [0x52a150], 0
je 0x46cd46
cmp edx, 0x64
je 0x46cd46
push 0x64
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
test eax, eax
js 0x46cdda
mov edx, dword [0x521438]
mov eax, dword [edi + 0x2a4]
cmp eax, 0x7ffffffe
ja 0x46cd8b
mov ecx, dword [edi + 0x288]
test ecx, ecx
je 0x46cd6d
mov ecx, dword [ecx + 0x1f0]
cmp ecx, 0x64
je 0x46cd8b
push 0x64
push ecx
jmp 0x46cd7e
cmp dword [0x52a150], 0
je 0x46cd8b
cmp edx, 0x64
je 0x46cd8b
push 0x64
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [0x521438]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x46cdde
mov eax, dword [edi + 0x2a4]
mov dword [esp + 0x14], eax
cmp eax, 0x7ffffffe
ja 0x46cdda
mov ecx, dword [edi + 0x288]
test ecx, ecx
je 0x46cdbe
mov ecx, dword [ecx + 0x1f0]
cmp ecx, 0x64
je 0x46cdda
push 0x64
push ecx
jmp 0x46cdcf
cmp dword [0x52a150], 0
je 0x46cdda
cmp edx, 0x64
je 0x46cdda
push 0x64
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
sub esp, 8
lea edx, [esp + 0x50]
mov eax, esp
push edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], 0x270f
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, dword [edi + 0x29c]
cmp ecx, 0x7ffffffe
ja 0x46ce39
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46ce1a
mov eax, dword [eax + 0x1f0]
jmp 0x46ce28
cmp dword [0x52a150], 0
je 0x46ce39
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46ce39
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x48], ecx
jge 0x46ce82
mov ecx, dword [edi + 0x29c]
cmp ecx, 0x7ffffffe
ja 0x46ce7e
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46ce5f
mov eax, dword [eax + 0x1f0]
jmp 0x46ce6d
cmp dword [0x52a150], 0
je 0x46ce7e
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46ce7e
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x2a4]
test ecx, ecx
js 0x46cf57
cmp ecx, 0x7fffffff
jge 0x46cecf
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46ceaa
mov eax, dword [eax + 0x1f0]
jmp 0x46ceb8
cmp dword [0x52a150], 0
je 0x46cecf
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46cecf
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
test eax, eax
js 0x46cf57
mov ecx, dword [edi + 0x2a4]
cmp ecx, 0x7ffffffe
ja 0x46cf0e
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46ceef
mov eax, dword [eax + 0x1f0]
jmp 0x46cefd
cmp dword [0x52a150], 0
je 0x46cf0e
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46cf0e
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x48], ecx
jle 0x46cf57
mov ecx, dword [edi + 0x2a4]
cmp ecx, 0x7ffffffe
ja 0x46cf53
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46cf34
mov eax, dword [eax + 0x1f0]
jmp 0x46cf42
cmp dword [0x52a150], 0
je 0x46cf53
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46cf53
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x2a0]
cmp ecx, 0x7ffffffe
ja 0x46cf96
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46cf77
mov eax, dword [eax + 0x1f0]
jmp 0x46cf85
cmp dword [0x52a150], 0
je 0x46cf96
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46cf96
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov edx, dword [esp + 0x4c]
cmp edx, ecx
jge 0x46cfe1
mov edx, dword [edi + 0x2a0]
cmp edx, 0x7ffffffe
ja 0x46cfdd
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46cfbe
mov eax, dword [eax + 0x1f0]
jmp 0x46cfcc
cmp dword [0x52a150], 0
je 0x46cfdd
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46cfdd
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, eax
mov dword [esp + 0x4c], edx
mov ecx, dword [edi + 0x2a8]
cmp ecx, 0x7ffffffe
ja 0x46d024
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46d001
mov eax, dword [eax + 0x1f0]
jmp 0x46d00f
cmp dword [0x52a150], 0
je 0x46d024
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d024
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x4c]
mov ecx, eax
cmp edx, ecx
jle 0x46d06b
mov edx, dword [edi + 0x2a8]
cmp edx, 0x7ffffffe
ja 0x46d067
mov eax, dword [edi + 0x288]
test eax, eax
je 0x46d048
mov eax, dword [eax + 0x1f0]
jmp 0x46d056
cmp dword [0x52a150], 0
je 0x46d067
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d067
push 0x64
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
add eax, edx
cmp ecx, eax
cmovle ecx, eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
cdq
idiv dword [ecx]
test edx, edx
je 0x46d0a5
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [eax + 4]
jne 0x46cbe2
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x98]
mov ecx, esi
push eax
call fcn.0043bf90
mov eax, dword [esp + 0x24]
mov edx, eax
test edx, edx
jns 0x46d0c5
add edx, 1
sar edx, 1
mov ecx, dword [esp + 0x2c]
sub esp, 8
mov esi, dword [esp + 0x60]
add ecx, edx
add ecx, dword [esp + 0xa0]
sub esi, edx
sub esi, dword [esp + 0xa8]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x48]
add edx, dword [esp + 0xa4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], esi
sub esi, ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, esp
mov dword [esp + 0x68], edx
sub ecx, edx
lea edx, [esp + 0x24]
mov dword [esp + 0x38], ecx
push edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [ecx]
call dword [eax + 0x68]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x44]
cmove eax, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
cmove eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x29c]
cmp ecx, 0x7ffffffe
ja 0x46d18b
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d16c
mov eax, dword [eax + 0x1f0]
jmp 0x46d17a
cmp dword [0x52a150], 0
je 0x46d18b
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d18b
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x1c], ecx
jge 0x46d1d4
mov ecx, dword [esi + 0x29c]
cmp ecx, 0x7ffffffe
ja 0x46d1d0
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d1b1
mov eax, dword [eax + 0x1f0]
jmp 0x46d1bf
cmp dword [0x52a150], 0
je 0x46d1d0
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d1d0
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2a4]
test ecx, ecx
js 0x46d2a9
cmp ecx, 0x7fffffff
jge 0x46d221
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d1fc
mov eax, dword [eax + 0x1f0]
jmp 0x46d20a
cmp dword [0x52a150], 0
je 0x46d221
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d221
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
test eax, eax
js 0x46d2a9
mov ecx, dword [esi + 0x2a4]
cmp ecx, 0x7ffffffe
ja 0x46d260
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d241
mov eax, dword [eax + 0x1f0]
jmp 0x46d24f
cmp dword [0x52a150], 0
je 0x46d260
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d260
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x1c], ecx
jle 0x46d2a9
mov ecx, dword [esi + 0x2a4]
cmp ecx, 0x7ffffffe
ja 0x46d2a5
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d286
mov eax, dword [eax + 0x1f0]
jmp 0x46d294
cmp dword [0x52a150], 0
je 0x46d2a5
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d2a5
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2a0]
cmp ecx, 0x7ffffffe
ja 0x46d2e8
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d2c9
mov eax, dword [eax + 0x1f0]
jmp 0x46d2d7
cmp dword [0x52a150], 0
je 0x46d2e8
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d2e8
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x20], ecx
jge 0x46d331
mov ecx, dword [esi + 0x2a0]
cmp ecx, 0x7ffffffe
ja 0x46d32d
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d30e
mov eax, dword [eax + 0x1f0]
jmp 0x46d31c
cmp dword [0x52a150], 0
je 0x46d32d
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d32d
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x2a8]
cmp ecx, 0x7ffffffe
ja 0x46d370
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d351
mov eax, dword [eax + 0x1f0]
jmp 0x46d35f
cmp dword [0x52a150], 0
je 0x46d370
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d370
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
cmp dword [esp + 0x20], ecx
jle 0x46d3b9
mov ecx, dword [esi + 0x2a8]
cmp ecx, 0x7ffffffe
ja 0x46d3b5
mov eax, dword [esi + 0x288]
test eax, eax
je 0x46d396
mov eax, dword [eax + 0x1f0]
jmp 0x46d3a4
cmp dword [0x52a150], 0
je 0x46d3b5
mov eax, dword [0x521438]
cmp eax, 0x64
je 0x46d3b5
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
sub esp, 0x10
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x90], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x70]
sub eax, esi
add eax, dword [esp + 0x24]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x2c]
sar ecx, 1
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x90]
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x64]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x34], eax
cdq
idiv dword [ecx]
test edx, edx
jne 0x46d443
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x24]
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
sub eax, dword [ebp + 0x14]
test edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
cmovne eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
cmovne eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
xor eax, eax
test edx, edx
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
add edi, 4
mov dword [esp + 0x44], edi
cmp edi, dword [eax + 4]
jne 0x46cb40
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x6c]
sub ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov esp, ebp
pop ebp
ret 0x18