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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x5c3040]
xor eax, esp
mov dword [esp + 0x4c8], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x5c], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
add eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x64], eax
cmp edi, eax
jge 0x46f14c
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
add edx, eax
mov dword [esp + 0x5c], edx
nop
mov dword [esp + 0x34], eax
cmp dword [ebp + 0x14], edx
jge 0x46f112
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x38], edx
mov edi, 0x10
mov dword [esp + 0x68], eax
mov edx, edi
cmp dword [esp + 0x38], edx
cmovl edx, dword [esp + 0x38]
cmp dword [ebp + 0x20], edi
mov dword [esp + 0x40], edx
cmovl edi, dword [ebp + 0x20]
add edx, eax
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edx
lea ecx, [edi + edx]
mov dword [esp + 0x14], edi
mov eax, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x9c]
mov dword [esp + 0x78], eax
push edx
mov eax, dword [ecx]
push dword [esp + 0x54]
call dword [eax + 0x14]
mov ecx, edi
mov dword [esp + 0x30], esi
imul ecx, dword [esp + 0x40]
lea edi, [esp + 0x98]
xor eax, eax
mov byte [ebx + esi], 0
inc esi
mov dword [esp + 0x1c], eax
xor edx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], 1
mov dword [esp + 0x20], eax
test ecx, ecx
jle 0x46eeb8
movzx ecx, dx
test eax, eax
jne 0x46ee63
movzx edx, word [edi]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x46ee9c
movzx eax, word [edi]
mov edx, ecx
cmp ax, cx
jne 0x46ee78
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x46ee9c
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x46ee8a
mov dword [esp + 0x54], edx
mov dword [esp + 0x20], eax
jmp 0x46ee91
cmp ax, word [esp + 0x20]
jne 0x46eeae
mov eax, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x24], edx
mov edx, ecx
mov ecx, dword [esp + 0x18]
add edi, 2
dec ecx
mov dword [esp + 0x18], ecx
test ecx, ecx
jg 0x46ee52
jmp 0x46eeb8
mov dword [esp + 0x3c], 0
mov edx, ecx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x24]
movzx ecx, ax
movzx eax, dx
cmovle ecx, eax
movzx eax, cx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
movzx eax, ax
movzx ecx, dx
cmovle ecx, eax
cmp dword [esp + 0x28], 0
movzx eax, cx
je 0x46eef4
mov edx, dword [esp + 0x50]
cmp ax, dx
je 0x46ef19
mov edi, dword [esp + 0x30]
mov edx, eax
shr eax, 8
mov dword [esp + 0x28], 1
mov dword [esp + 0x50], edx
or byte [ebx + edi], 2
mov byte [ebx + esi], dl
mov byte [ebx + esi + 1], al
add esi, 2
jmp 0x46ef1d
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x54], 0
jne 0x46f0f1
mov al, byte [ebx + edi]
or al, 8
cmp dword [esp + 0x3c], 0
mov byte [ebx + edi], al
je 0x46ef6e
cmp dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x18]
je 0x46ef49
cmp cx, word [esp + 0x58]
je 0x46ef7b
or al, 4
movzx ecx, cx
mov byte [ebx + edi], al
mov eax, ecx
shr eax, 8
mov byte [ebx + esi], cl
mov byte [ebx + esi + 1], al
add esi, 2
mov dword [esp + 0x2c], 1
mov dword [esp + 0x58], ecx
jmp 0x46ef7b
or al, 0x10
mov dword [esp + 0x2c], 0
mov byte [ebx + edi], al
push dword [esp + 0x3c]
push ecx
push edx
push dword [esp + 0x20]
lea edx, [ebx + esi]
push dword [esp + 0x50]
lea ecx, [esp + 0xac]
call fcn.0046f170
add esp, 0x14
test eax, eax
jne 0x46f099
mov eax, dword [esp + 0x14]
lea esi, [edi + 1]
imul eax, dword [esp + 0x40]
mov dword [esp + 0x28], 0
add eax, eax
mov dword [esp + 0x14], eax
cmp eax, 0x40
mov eax, dword [esp + 0x34]
jle 0x46f047
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x78]
mov eax, dword [ebp + 0x18]
mov byte [edi + ebx], 0x20
mov edi, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
push ecx
mov dword [esp + 0x84], eax
lea ecx, [esp + 0x9c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov eax, dword [edi]
push ecx
push dword [esp + 0x54]
mov ecx, edi
call dword [eax + 0x14]
push dword [edi + 0x98]
mov edx, dword [edi]
lea eax, [ebx + 2]
push dword [esp + 0x18]
add eax, esi
mov ecx, edi
push eax
lea eax, [esp + 0xa4]
push eax
call dword [edx + 0x40]
mov cx, ax
mov dword [esp + 0x2c], 0
mov dh, cl
mov dl, ch
mov word [ebx + esi], dx
add esi, 2
add esi, eax
jmp 0x46f0f1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x88]
push eax
lea eax, [ebx + esi]
mov byte [edi + ebx], 1
mov edx, dword [ecx]
push eax
push dword [esp + 0x54]
call dword [edx + 0x14]
add esi, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
jmp 0x46f0f1
cmp eax, 0x80
jle 0x46f0ef
sub eax, edi
inc edi
dec eax
add edi, ebx
add esi, eax
lea eax, [esp + 0x98]
push esi
push edi
push eax
call fcn.005264b0
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 2]
add esp, 0xc
or byte [ebx + ecx], 0x40
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x9c]
mov edx, dword [ecx]
push esi
push eax
lea eax, [esp + 0xa4]
push eax
call dword [edx + 0x40]
mov esi, dword [esp + 0x30]
mov cx, ax
mov dh, cl
add esi, 3
mov dl, ch
mov word [edi], dx
add esi, eax
mov eax, dword [esp + 0x34]
sub dword [esp + 0x38], 0x10
add eax, 0x10
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x5c]
jl 0x46edb4
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp + 0x18]
cmp esi, 0x578
jle 0x46f131
push dword [esp + 0x60]
mov eax, dword [ecx]
push esi
push ebx
call dword [eax + 0x34]
mov ecx, dword [esp + 0x10]
add dword [ecx + 0x60], esi
add dword [ecx + 0x5c], esi
xor esi, esi
sub dword [ebp + 0x20], 0x10
add edi, 0x10
mov edx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], edi
cmp edi, dword [esp + 0x64]
jl 0x46eda0
add dword [ecx + 0x60], esi
mov eax, esi
add dword [ecx + 0x5c], esi
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret 0x1c