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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x51d06c]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x3c], eax
push edi
mov edi, ecx
mov dword [esp + 0x38], edx
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], 0
mov eax, dword [edi]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x4c], ebx
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x24], ebx
jne 0x46f8f5
cmp byte [eax + 0x49], bl
jne 0x46f8f5
call fcn.0046ed40
mov esi, eax
mov dword [esp + 0x68], esi
test esi, esi
je 0x46f8f5
mov eax, dword [edi]
xor edx, edx
test dword [eax + 0x1c], 0x40000
je 0x46f102
mov edx, esi
mov ecx, edi
call fcn.0048a9e0
mov edx, eax
mov ecx, edx
test edx, edx
je 0x46f11b
cmp byte [ecx + 8], 0x75
jne 0x46f114
movzx eax, byte [ecx + 9]
or ebx, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x46f108
mov eax, dword [esi + 0xc]
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0x54], eax
cmovne ecx, edx
mov dword [esp + 0x6c], ecx
test ecx, ecx
jne 0x46f14b
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.00475c00
add esp, 8
mov dword [esp + 0x10], 0
test eax, eax
je 0x46f153
mov dword [esp + 0x10], 1
mov edx, esi
mov ecx, edi
call fcn.0046a720
test eax, eax
jne 0x46f8f3
cmp dword [esp + 0x6c], eax
mov edx, esi
mov ecx, edi
setne al
push eax
call fcn.0046edd0
add esp, 4
test eax, eax
jne 0x46f8f3
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
mov edx, dword [esi + 0x48]
call fcn.0047f2f0
mov ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
add ecx, ecx
mov edx, 9
push dword [eax + ecx*8]
mov ecx, edi
push 0
push dword [esi]
call fcn.00466f70
add esp, 0xc
mov dword [esp + 0x30], eax
cmp eax, 1
je 0x46f8f3
mov ecx, dword [esp + 0x38]
xor edx, edx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edx
mov dword [ecx + 0x34], eax
inc dword [edi + 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x28]
test eax, eax
je 0x46f1f0
nop dword [eax]
inc ecx
inc edx
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x46f1e0
mov dword [esp + 0x48], edx
cmp dword [esp + 0x54], 0
je 0x46f20f
mov ecx, dword [edi + 0xec]
mov eax, dword [esi]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
mov dword [edi + 0xec], eax
jmp 0x46f21f
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x74], eax
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x46f248
cmp dword [edi + 0x74], ebx
jne 0x46f237
mov eax, dword [edi]
test byte [eax + 0x44], 8
jne 0x46f237
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00445680
mov ebx, eax
test ebx, ebx
je 0x46f8db
cmp byte [edi + 0x12], 0
jne 0x46f255
or dword [ebx + 0x94], 0x20
push dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.0046d770
add esp, 4
cmp dword [esp + 0x54], 0
je 0x46f292
push dword [esp + 0x18]
mov edx, esi
mov ecx, edi
push 0
push 0
push dword [esp + 0x4c]
call fcn.0046ee50
mov eax, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x84]
mov edx, dword [esp + 0x40]
xorps xmm0, xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
call fcn.0045a740
test eax, eax
jne 0x46f8db
mov eax, dword [esp + 0x3c]
test byte [eax + 0x1c], 0x80
je 0x46f30c
cmp byte [edi + 0x12], 0
jne 0x46f30c
cmp dword [edi + 0x78], 0
jne 0x46f30c
inc dword [edi + 0x2c]
mov edx, 0x46
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0
mov dword [esp + 0x58], eax
call fcn.00445a20
add esp, 8
cmp dword [esp + 0x30], 0
mov eax, 1
mov ecx, dword [esp + 0x10]
jne 0x46f3a3
cmp dword [esp + 0x40], 0
jne 0x46f3a3
test ecx, ecx
jne 0x46f3a3
cmp dword [esi + 0x38], ecx
jne 0x46f3a3
push dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, edi
push eax
push dword [esi + 0x1c]
call fcn.00467010
add esp, 0xc
test byte [esi + 0x24], 0x20
jne 0x46f371
mov ecx, dword [esp + 0x50]
or eax, 0xffffffff
push 0xffffffffffffffff
push dword [esi]
test ecx, ecx
mov edx, 0x8a
cmovne eax, ecx
mov ecx, ebx
push eax
push dword [esp + 0x28]
push dword [esi + 0x1c]
call fcn.00445cd0
add esp, 0x14
mov esi, dword [esi + 8]
test esi, esi
je 0x46f88a
mov edi, dword [esp + 0x1c]
push edi
push dword [esi + 0x2c]
mov edx, 0x8a
mov ecx, ebx
call fcn.00445a20
mov esi, dword [esi + 0x14]
add esp, 8
test esi, esi
jne 0x46f380
mov edi, dword [esp + 0x24]
jmp 0x46f88a
test byte [esp + 0x9c], 0x40
cmovne ecx, eax
xor eax, eax
test ecx, ecx
sete al
test byte [esi + 0x24], 0x20
lea eax, [eax*8 + 0x414]
movzx eax, ax
mov dword [esp + 0x30], eax
jne 0x46f3f7
inc dword [edi + 0x2c]
mov edx, 0x49
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x60], eax
call fcn.00445a20
add esp, 8
jmp 0x46f449
mov ecx, esi
call fcn.00468700
mov dword [esp + 0x10], eax
movzx ecx, word [eax + 0x32]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x1c], ecx
movsx ecx, cx
push ecx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x38], edx
mov ecx, ebx
mov edx, dword [edi + 0x28]
mov dword [edi + 0x2c], eax
mov dword [esp + 0x2c], edx
push edx
lea eax, [edx + 1]
mov edx, 0x71
mov dword [edi + 0x28], eax
call fcn.00445a20
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.004467b0
mov eax, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x38]
inc eax
push eax
push dword [esp + 0x34]
push 0
push 0
push dword [esp + 0x50]
call fcn.0049c180
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x64], ecx
test ecx, ecx
je 0x46f8db
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x30], eax
mov al, byte [ecx + 0x31]
mov byte [esp + 0xf], al
mov byte [esp + 0x78], al
cmp al, 1
je 0x46f4a5
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46f4bf
push 1
push eax
mov edx, 0x53
mov ecx, ebx
call fcn.00445a20
add esp, 8
mov edx, dword [esp + 0x10]
test edx, edx
je 0x46f511
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ax, cx
jge 0x46f507
xor edi, edi
mov eax, dword [esp + 0x34]
mov ecx, ebx
add eax, edi
push eax
mov eax, dword [edx + 4]
mov edx, esi
movsx eax, word [eax + edi*2]
push eax
push dword [esp + 0x20]
call fcn.0045f870
mov ecx, dword [esp + 0x28]
inc edi
mov edx, dword [esp + 0x1c]
add esp, 0xc
movsx eax, cx
cmp edi, eax
jl 0x46f4d4
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jmp 0x46f532
inc dword [edi + 0x2c]
mov edx, esi
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push eax
push 0xffffffffffffffff
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0045f870
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0xf], 0
je 0x46f5d8
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [esp + 0x48]
add eax, 2
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.00426530
mov ecx, eax
add esp, 8
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x46f576
mov ecx, dword [esp + 0x64]
call fcn.0049ced0
jmp 0x46f8db
mov eax, dword [esp + 0x48]
inc eax
push eax
push 1
push ecx
call fcn.004b1910
mov eax, dword [esp + 0x54]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx + 1], 0
mov eax, dword [esp + 0x80]
test eax, eax
js 0x46f5a9
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x30]
test eax, eax
js 0x46f5b7
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46f5c8
mov edx, eax
mov ecx, ebx
call fcn.004465c0
mov ecx, ebx
call fcn.00445f40
mov dword [esp + 0x60], eax
jmp 0x46f667
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x46f642
inc dword [edi + 0x2c]
mov edx, ecx
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movsx esi, ax
push esi
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x2c], 0
call fcn.004767f0
add esp, 4
mov edx, 0x66
mov ecx, ebx
push eax
push dword [esp + 0x1c]
push esi
push dword [esp + 0x44]
call fcn.00445cd0
add esp, 0x14
mov edx, 0x85
mov ecx, ebx
push esi
push dword [esp + 0x38]
push dword [esp + 0x1c]
push dword [esp + 0x34]
call fcn.00445e30
mov esi, dword [esp + 0x78]
add esp, 0x10
jmp 0x46f65e
push eax
push dword [esp + 0x5c]
mov edx, 0x95
mov dword [esp + 0x2c], 1
mov ecx, ebx
call fcn.00445a20
add esp, 8
mov ecx, dword [esp + 0x64]
call fcn.0049ced0
cmp dword [esp + 0x54], 0
jne 0x46f6c4
cmp byte [esp + 0xf], 2
mov dword [esp + 0x44], 0
jne 0x46f68d
mov edx, 0x11
mov ecx, ebx
call fcn.00445940
mov dword [esp + 0x44], eax
lea eax, [esp + 0x5c]
mov edx, esi
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
push dword [esp + 0x34]
push dword [esp + 0x24]
push 8
push 0x6e
call fcn.00479d50
mov al, byte [esp + 0x27]
add esp, 0x18
cmp al, 2
jne 0x46f6c8
mov edx, dword [esp + 0x44]
mov ecx, ebx
call fcn.004462d0
jmp 0x46f6cc
mov al, byte [esp + 0xf]
test al, al
je 0x46f70c
cmp dword [esi + 0x38], 0
mov ecx, dword [esp + 0x20]
jne 0x46f784
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x18]
cmp byte [eax + ecx], 0
je 0x46f77a
mov eax, dword [esp + 0x24]
mov edx, 0x1c
cwde
push eax
push dword [esp + 0x18]
push dword [esp + 0x68]
push ecx
mov ecx, ebx
call fcn.00445e30
add esp, 0x10
jmp 0x46f776
cmp dword [esp + 0x10], 0
mov ecx, ebx
je 0x46f75b
push dword [esp + 0x28]
mov edx, 0x24
call fcn.004459b0
add esp, 4
mov dword [esp + 0x4c], eax
cmp dword [esi + 0x38], 0
mov ecx, ebx
push dword [esp + 0x14]
je 0x46f748
push 0
push dword [esp + 0x30]
mov edx, 0x5a
call fcn.004458d0
jmp 0x46f773
push dword [esp + 0x2c]
mov edx, 0x80
call fcn.00445a20
add esp, 8
jmp 0x46f776
push dword [esp + 0x14]
mov edx, 0x29
push 0
push dword [esp + 0x60]
call fcn.004458d0
mov dword [esp + 0x58], eax
add esp, 0xc
mov ecx, dword [esp + 0x20]
cmp dword [esi + 0x38], 0
je 0x46f800
mov esi, dword [esi + 0x40]
test esi, esi
je 0x46f79b
mov eax, dword [esp + 0x3c]
nop
cmp dword [esi], eax
je 0x46f79b
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x46f790
mov edx, dword [esp + 0x68]
mov ecx, edi
call fcn.00490ca0
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
cmp byte [esp + 0xf], 1
mov byte [ecx + 0x15], 1
jne 0x46f7d8
push dword [esp + 0x18]
mov edx, 0x75
mov ecx, ebx
call fcn.004459b0
add esp, 4
cmp dword [edi + 0x74], 0
jne 0x46f7d8
mov byte [edi + 0x14], 0
push 0xfffffffffffffff4
push esi
push dword [esp + 0x1c]
mov edx, 0xa
mov ecx, ebx
push 1
push 0
call fcn.00445cd0
add esp, 0x14
mov edx, 2
mov ecx, ebx
call fcn.004462b0
jmp 0x46f835
push dword [esp + 0x30]
cmp byte [edi + 0x12], 0
mov edx, esi
push dword [esp + 0x7c]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x34]
push dword [esp + 0x28]
push dword [esp + 0x74]
push ecx
push dword [esp + 0x8c]
mov ecx, edi
call fcn.0046f9a0
add esp, 0x24
cmp byte [esp + 0xf], 0
mov ecx, ebx
je 0x46f852
mov edx, dword [esp + 0x60]
call fcn.00445f90
mov ecx, dword [esp + 0x64]
call fcn.0049ced0
jmp 0x46f88a
cmp dword [esp + 0x10], 0
je 0x46f876
mov esi, dword [esp + 0x4c]
mov edx, 5
lea eax, [esi + 1]
push eax
push dword [esp + 0x2c]
call fcn.00445a20
add esp, 8
mov edx, esi
jmp 0x46f883
mov edx, dword [esp + 0x4c]
call fcn.00445a90
mov edx, dword [esp + 0x4c]
mov ecx, ebx
call fcn.004462d0
cmp byte [edi + 0x12], 0
jne 0x46f8a3
cmp dword [edi + 0x78], 0
jne 0x46f8a3
cmp dword [edi + 0x70], 0
je 0x46f8a3
mov ecx, edi
call fcn.00476a90
mov eax, dword [esp + 0x50]
test eax, eax
je 0x46f8db
push 1
push eax
mov edx, 0x51
mov ecx, ebx
call fcn.00445a20
mov edx, 1
mov ecx, ebx
call fcn.00447800
push 0
push 0x5136d4
push 0
xor edx, edx
mov ecx, ebx
call fcn.004478c0
add esp, 0x14
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x46f8f5
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xec], ecx
jmp 0x46f8f5
xor ebx, ebx
mov edi, dword [esp + 0x3c]
mov ecx, edi
mov edx, dword [esp + 0x38]
call fcn.0046cef0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46f915
mov edx, eax
mov ecx, edi
call fcn.0045bd50
test ebx, ebx
je 0x46f980
test edi, edi
je 0x46f977
cmp dword [edi + 0x1d8], 0
je 0x46f944
mov edx, ebx
mov ecx, edi
call fcn.00426210
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
cmp ebx, dword [edi + 0x128]
jb 0x46f977
cmp ebx, dword [edi + 0x12c]
jae 0x46f977
mov eax, dword [edi + 0x124]
mov dword [ebx], eax
mov dword [edi + 0x124], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004261a0
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad990
mov esp, ebp
pop ebp
ret