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

Disassembly:
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
test eax, eax
jne 0x46dd10
cmp edx, 1
je 0x46dd61
jle 0x46ddf0
cmp edx, 2
je 0x46ddb0
cmp edx, 3
jne case.default.0x46dde3
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a4a0
sub esp, 4
add esp, 0x38
pop ebx
ret
cmp eax, 0xa
je 0x46dd35
cmp eax, 0xb
je 0x46de40
cmp eax, 1
je 0x46ddd0
cmp eax, 2
je 0x46de60
add esp, 0x38
pop ebx
ret
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [edx]
cmp eax, fcn.0046af40
je 0x46dfd0
cmp eax, 0x46af90
jne case.default.0x46dde3
mov eax, dword [edx + 4]
test eax, eax
jne case.default.0x46dde3
mov dword [ecx], 1
jmp case.default.0x46dde3
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
mov dword [esp + 0x20], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x5d48e8
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x6a1bc0]
add esp, 0x38
pop ebx
ret
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a470
sub esp, 4
add esp, 0x38
pop ebx
ret
mov eax, dword [esp + 0x4c]
cmp edx, 6
mov ebx, dword [eax]
ja case.default.0x46dde3
mov eax, dword [esp + 0x40]
jmp dword [edx*4 + 0x5d06c4]
test edx, edx
jne case.default.0x46dde3
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
movzx eax, byte [eax]
mov dword [esp + 0x20], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5d48e8
mov byte [esp + 0x1e], al
lea eax, [esp + 0x1e]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x6a1bc0]
add esp, 0x38
pop ebx
ret
test edx, edx
mov eax, dword [esp + 0x4c]
je 0x46dfc0
mov eax, dword [eax]
mov dword [eax], 0xffffffff
jmp case.default.0x46dde3
mov eax, dword [esp + 0x4c]
cmp edx, 6
mov eax, dword [eax]
ja case.default.0x46dde3
jmp dword [edx*4 + 0x5d06e0]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a460
sub esp, 4
jmp case.default.0x46dde3
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a450
sub esp, 4
jmp case.default.0x46dde3
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a440
sub esp, 4
jmp case.default.0x46dde3
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041a430
sub esp, 4
jmp case.default.0x46dde3
movzx eax, byte [eax + 0xb4]
mov byte [ebx], al
jmp case.default.0x46dde3
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 0xa4]
mov edx, dword [ecx + 0xa8]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0xac]
mov dword [esp + 0x28], edx
movzx edx, word [ecx + 0xb0]
mov word [esp + 0x2c], dx
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x2c]
mov word [ebx + 0xc], ax
jmp case.default.0x46dde3
add eax, 0x9c
mov dword [esp], eax
lea ecx, [esp + 0x20]
call dword [0x6a1f10]
sub esp, 4
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov dword [ebx], edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov dword [ebx + 4], edx
mov dword [esp + 0x24], eax
call dword [0x6a1f18]
jmp case.default.0x46dde3
mov ecx, dword [esp + 0x40]
mov eax, dword [eax + 0x8c]
mov edx, dword [ecx + 0x90]
mov dword [esp + 0x24], edx
mov edx, dword [ecx + 0x94]
mov dword [esp + 0x28], edx
movzx edx, word [ecx + 0x98]
jmp 0x46df0b
add eax, 0x84
jmp 0x46df33
mov eax, dword [eax + 0x80]
mov dword [ebx], eax
jmp case.default.0x46dde3
movzx eax, byte [eax + 0xb5]
mov byte [ebx], al
jmp case.default.0x46dde3
mov ebx, dword [eax]
call fcn.00481e20
mov dword [ebx], eax
jmp case.default.0x46dde3
mov edx, dword [edx + 4]
test edx, edx
jne case.default.0x46dde3
mov dword [ecx], 0
jmp case.default.0x46dde3