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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 4]
cmp esi, 0x200
je 0x46ea36
cmp esi, 0xa0
je 0x46ea36
cmp esi, 0x202
je 0x46ea36
cmp esi, 0x205
je 0x46ea36
cmp esi, 0x208
jne 0x46efc6
mov ebx, dword [0x55e568]
push 1
call ebx
test ax, ax
jl 0x46efc3
push 2
call ebx
test ax, ax
jl 0x46efc3
push 4
call ebx
test ax, ax
jl 0x46efc3
test edi, edi
jne 0x46ea93
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.004e0970
test eax, eax
je 0x46ea8a
test dword [eax + 0x3c], 0x401
jne 0x46ea8a
mov ecx, eax
call fcn.00418ef0
test eax, eax
jne 0x46ea76
cmp eax, dword [ebp + 0xc]
jne 0x46f09b
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004116a0
call fcn.004416d0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x60]
mov ebx, eax
mov dword [esp + 0x3c], ebx
call fcn.004116a0
test eax, eax
je 0x46ead0
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0x20]
push eax
call dword [0x55e588]
test eax, eax
je 0x46ead0
test ebx, ebx
je 0x46f08a
mov ecx, edi
call fcn.004e0c76
mov ecx, dword [esi + 0x60]
mov ebx, eax
test ecx, ecx
je 0x46eaf3
call fcn.00425420
cmp eax, ebx
je 0x46eaf3
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x46eb07
call fcn.004116a0
test eax, eax
jne 0x46ec6d
cmp dword [esi + 0x60], 0
jne 0x46eb1a
mov edx, dword [esi]
mov eax, dword [edx + 0x50]
push ebx
mov ecx, esi
call eax
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x46f09b
call fcn.004116a0
test eax, eax
jne 0x46eb90
mov ecx, dword [esi + 0x60]
push ecx
push 0x58125c
call fcn.004fa263
add esp, 8
test eax, eax
je 0x46eb54
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x60]
or eax, 3
push edx
call fcn.0046b6a0
jmp 0x46eb90
mov eax, dword [esi + 0x60]
push eax
push 0x5653d0
call fcn.004fa263
add esp, 8
test eax, eax
je 0x46f09b
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x13c]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x40
or eax, dword [esi + 0x40]
or eax, 3
push eax
push ebx
call edx
mov ecx, dword [esi + 0x60]
call fcn.004116a0
test eax, eax
je 0x46f09b
mov eax, dword [esi + 0x60]
push eax
lea ecx, [esi + 0x98]
mov eax, 1
call fcn.00422f10
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x60]
push 0
push 0x418
call fcn.00418ff0
mov ecx, dword [esi + 0x60]
lea edx, [esi + 0x44]
push edx
push 0
push 0x41a
call fcn.00418ff0
mov eax, dword [esi + 0x90]
or ebx, 0xffffffff
cmp eax, ebx
je 0x46ebf7
mov ecx, dword [esi + 0x60]
push 0
push eax
push 0x413
call fcn.00418ff0
mov eax, dword [esi + 0x94]
cmp eax, ebx
je 0x46ec11
mov ecx, dword [esi + 0x60]
push 0
push eax
push 0x414
call fcn.00418ff0
cmp dword [esi + 0x58], ebx
je 0x46ec2a
movzx eax, word [esi + 0x58]
mov ecx, dword [esi + 0x60]
push eax
push 1
push 0x403
call fcn.00418ff0
cmp dword [esi + 0x54], ebx
je 0x46ec43
movzx ecx, word [esi + 0x54]
push ecx
mov ecx, dword [esi + 0x60]
push 3
push 0x403
call fcn.00418ff0
cmp dword [esi + 0x5c], ebx
je 0x46ec5c
movzx edx, word [esi + 0x5c]
mov ecx, dword [esi + 0x60]
push edx
push 2
push 0x403
call fcn.00418ff0
mov ecx, dword [esi + 0x60]
push 0
push 0
push 0x401
call fcn.00418ff0
mov ebx, dword [esi + 0x60]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], ebx
call fcn.00416bf0
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x55e714]
push 0x2c
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.0050cad0
add esp, 0xc
cmp dword [esi + 0x20], 0
jne 0x46ecde
cmp dword [esi + 0x24], 0
mov dword [esp + 0x48], 0x28
je 0x46ece6
mov dword [esp + 0x48], 0x2c
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
mov edx, dword [edx + 0x74]
lea eax, [esp + 0x14]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
mov ecx, edi
call edx
cmp dword [esi + 0x20], 0
mov dword [esp + 0x10], eax
je 0x46ed62
mov edi, dword [esp + 0x14]
test edi, edi
je 0x46ed62
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x46ed62
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ed48
test dx, dx
je 0x46ed44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ed48
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ed22
xor eax, eax
jmp 0x46ed4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46ed62
push edi
call fcn.00511e67
add esp, 4
mov dword [esp + 0x14], 0
test byte [esi + 0x40], 2
jne 0x46ed7d
mov eax, dword [esp + 0x6c]
call fcn.004410f0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
call fcn.004410f0
mov ecx, dword [esi + 0x70]
cmp ecx, dword [esp + 0x54]
jne 0x46ede7
mov edx, dword [esi + 0x6c]
cmp edx, dword [esp + 0x50]
jne 0x46ede7
mov edi, dword [0x55e6f0]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x14], 0
call edi
lea edx, [esi + 0x74]
push edx
lea eax, [esp + 0x78]
push eax
call edi
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x78]
push edx
call dword [0x55e5a0]
test eax, eax
je 0x46edef
cmp dword [esp + 0x10], 0xffffffff
je 0x46ef7b
push ebx
mov ebx, dword [ebp + 0x10]
call fcn.0046e770
jmp 0x46ef7b
mov dword [esp + 0xc], 1
cmp dword [esi + 0x64], 0x28
lea eax, [esi + 0x64]
mov dword [esp + 0x44], eax
jb 0x46ee12
cmp dword [esp + 0xc], 0
jne 0x46ee12
push eax
push 0
push 0x433
mov ecx, ebx
call fcn.00418ff0
cmp dword [esp + 0x10], 0xffffffff
je 0x46ef36
mov eax, dword [esp + 0x4c]
mov ecx, 0xb
lea esi, [esp + 0x48]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x94]
push ecx
push 0
and eax, 0x3fffffff
push 0x432
mov ecx, ebx
mov dword [esp + 0xa4], eax
call fcn.00418ff0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
cmp eax, 3
je 0x46eec4
cmp eax, 6
je 0x46eec4
cmp dword [esi + 0x34], 0x50050
jae 0x46ee72
test eax, eax
je 0x46eec4
cmp dword [esi + 0x20], 0
je 0x46eeb4
cmp dword [esp + 0x14], 0
je 0x46eeb4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46eeb4
mov edx, dword [esi + 0x38]
push eax
push edx
push 0x421
mov ecx, ebx
call fcn.00418ff0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x94]
push ecx
push 0
mov dword [esp + 0xc0], eax
push 0x439
jmp 0x46eebd
push 0
push 0
push 0x421
mov ecx, ebx
call fcn.00418ff0
cmp dword [esi + 0x24], 0
je 0x46eefa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46eeea
mov edx, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
add esi, dword [esp + 0x10]
push edx
push eax
call fcn.0042b380
test eax, eax
je 0x46eeea
push eax
jmp 0x46eeec
push 0
push 0
push 0x2a49
mov ecx, ebx
call fcn.00418ff0
test dword [esp + 0x4c], 0x40000000
jne 0x46ef0b
cmp dword [esp + 0x3c], 0
je 0x46ef46
push 0
push 1
push 0x401
mov ecx, ebx
call fcn.00418ff0
mov eax, dword [ebx + 0x20]
push 0x213
push 0
push 0
push 0
push 0
push 0
push eax
call dword [0x55e5d8]
jmp 0x46ef46
push 0
push 0
push 0x401
mov ecx, ebx
call fcn.00418ff0
push ebx
mov ebx, dword [ebp + 0x10]
call fcn.0046e770
mov edi, dword [esp + 0x44]
cmp dword [edi], 0x28
jb 0x46ef70
cmp dword [esp + 0xc], 0
je 0x46ef70
mov ecx, dword [esp + 0x40]
push edi
push 0
push 0x433
call fcn.00418ff0
mov ecx, 0xb
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
je 0x46ef94
cmp dword [esp + 0x68], 0
jne 0x46ef94
push eax
call fcn.00511e67
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46efa5
push eax
call fcn.00511e67
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46f09b
push eax
call fcn.00511e67
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
test edi, edi
jne 0x46f000
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.004e0970
test eax, eax
je 0x46eff8
lea esp, [esp]
cmp eax, ebx
je 0x46f000
test dword [eax + 0x3c], 0x401
jne 0x46eff8
mov ecx, eax
call fcn.00418ef0
test eax, eax
jne 0x46efe0
cmp eax, ebx
jne 0x46f09b
cmp esi, 0x100
jb 0x46f010
cmp esi, 0x108
jbe 0x46f07b
lea eax, [esi - 0x104]
cmp eax, 3
jbe 0x46f07b
cmp esi, 0x201
je 0x46f07b
cmp esi, 0x203
je 0x46f07b
cmp esi, 0x204
je 0x46f07b
cmp esi, 0x206
je 0x46f07b
cmp esi, 0x207
je 0x46f07b
cmp esi, 0x209
je 0x46f07b
cmp esi, 0xa1
je 0x46f07b
cmp esi, 0xa3
je 0x46f07b
cmp esi, 0xa4
je 0x46f07b
cmp esi, 0xa6
je 0x46f07b
cmp esi, 0xa7
je 0x46f07b
cmp esi, 0xa9
jne 0x46f09b
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x60]
call fcn.004116a0
test eax, eax
je 0x46f09b
mov ecx, dword [esi + 0x60]
push 0
push 0
push 0x401
call fcn.00418ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc