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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
mov edx, ecx
mov ecx, 0x12
sub esp, 0xec
lea edi, [esp + 0x50]
mov dword [esp + 0x34], eax
xor eax, eax
test ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x98]
mov ecx, 0x12
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + edx*4]
je 0x46cee5
mov ebp, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
test ebp, ebp
mov dword [esp + 0x38], eax
je 0x46cb7e
mov dword [esp + 0x30], 0
xor edi, edi
jmp 0x46cca9
mov ecx, dword [esi + 0xe8]
mov dword [esp + 0x30], 0
test byte [ecx + 0xb0], 1
je 0x46cb77
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov edx, esi
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 4], 0
mov dword [esp + 8], 0x80000000
mov dword [esp], ebx
call fcn.0046bc96
jmp 0x46cb6f
lea eax, [esp + 0x98]
cmp ebx, eax
jne 0x46ceb9
test byte [esp + 0x30], 1
je 0x46ceb9
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], edx
mov dword [esp], eax
call fcn.0047bd83
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x2b8]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xe8]
mov dword [esp], eax
call fcn.004c2afe
add dword [esp + 0x38], eax
sub ebp, eax
mov eax, dword [esp + 0x6c]
xor edx, edx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x80000000
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0x80000000
test eax, eax
mov dword [ebx + 0x38], 0xffffffff
setne dl
mov dword [ebx + 0x3c], 0xffffffff
mov dword [esp + 0x30], edx
jne 0x46ccb6
test ebp, ebp
jg 0x46cbdf
jmp 0x46cbc5
mov eax, dword [ebx]
test eax, eax
je 0x46ccfb
mov ecx, dword [ebx + 0x18]
cmp dword [esp + 0x68], ecx
jne 0x46ccfb
mov dword [esp], eax
call fcn.0063ee87
test eax, eax
mov dword [esp + 0x50], eax
je 0x46cede
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46cd12
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [esp + 0x7c], eax
jmp 0x46cd12
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0047cad1
test eax, eax
mov edi, eax
jns 0x46ccd9
jmp 0x46cf0d
mov edi, dword [esi + 0xe8]
xor eax, eax
xor edx, edx
test byte [edi + 0xb0], 1
je 0x46cd2b
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x84], edx
cmp dword [eax], 1
jne 0x46cd9c
mov eax, dword [esi + 0x2b8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x158]
test eax, eax
jle 0x46cd9c
mov dword [esp + 0x18], 2
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 0x130]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00647e9f
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov eax, dword [esi]
mov edx, dword [edi + 0x2c]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x124]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x120]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
mov eax, ecx
and eax, 4
or eax, dword [esp + 0x74]
cmp dword [esi + 0xe4], 5
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], eax
jne 0x46ce09
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
mov edx, dword [edi + 0xe0]
cmp edx, 1
je 0x46ce27
cmp edx, 0xffffffff
jne 0x46ce41
cmp dword [edi + 0x20], 1
je 0x46ce27
cmp dword [edi + 0x20], 0
je 0x46ce37
jmp 0x46ce41
mov eax, dword [esp + 0x3c]
or eax, 1
inc edx
mov dword [esp + 0x74], eax
jne 0x46ce41
jmp 0x46ce1f
and cl, 1
je 0x46ce41
or dword [esp + 0x74], 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], edx
mov edx, esi
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call fcn.0046bc96
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x50]
mov eax, dword [eax + 0x50c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
lea edx, [eax + 0x24]
add eax, 0x20
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0046b8a1
test eax, eax
mov edi, eax
jns 0x46cca9
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0047c59e
jmp 0x46cf0d
lea eax, [esp + 0x98]
cmp ebx, eax
jne 0x46cf0d
mov eax, dword [esi + 0xe8]
mov dword [esp], eax
call fcn.004c2e19
mov dword [esi + 0xe8], 0
jmp 0x46cf0d
mov edi, 0xfffffff4
jmp 0x46cf0d
lea edi, [esp + 0x98]
xor ebp, ebp
mov dword [esp], edi
mov ebx, edi
call fcn.0047bd83
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 1
jmp 0x46cb77
mov dword [esp], ebx
call fcn.0047c59e
add esp, 0xec
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret