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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
mov dword [esp + 0x1c], ebx
call fcn.004840c0
push 0x200
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xff
call fcn.00458fa0
mov esi, dword [ebp + 0xc]
add esp, 8
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov word [eax], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x466614
mov eax, dword [ebp + 0x10]
push 1
push 0x100bc634
push eax
call fcn.004605d0
add esp, 0xc
test eax, eax
jne 0x466614
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00460840
add esp, 4
test eax, eax
jne 0x466614
push 0x100bc5f4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0043e5a0
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x24]
call fcn.0043e5a0
cmp esi, ebx
je 0x46626f
push esi
call fcn.00459000
add esp, 4
mov esi, dword [esp + 0x24]
lea esi, [esi + esi + 0x10]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0043e430
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.00458f10
mov edx, dword [esp + 0x28]
add esp, 8
push edx
call dword [0x100b00c8]
add eax, eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x20]
push eax
add edi, 0xc
push edi
call dword [0x100b00c4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004841a0
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.00465640
cmp dword [ebp + 0x1c], ebx
jne 0x4662fe
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], 1
call edx
mov ecx, eax
call fcn.004986f0
test eax, eax
mov byte [esp + 0x1f], bl
je 0x466303
mov byte [esp + 0x1f], 1
test byte [esp + 0x18], 1
je 0x466313
lea ecx, [esp + 0x3c]
call fcn.00498440
cmp byte [esp + 0x1f], bl
je 0x466573
lea eax, [esp + 0x60]
push 0x18
push eax
call fcn.00458f10
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00461e60
mov eax, dword [esp + 0x64]
add esp, 0x10
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [0x100ccda0]
push ebx
push ebx
push 0x20
push 1
push 1
push ebx
lea edx, [esp + 0x48]
push ebx
lea ecx, [esp + 0x58]
mov dword [esp + 0x7c], 0x18
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], 0x40
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
push eax
lea eax, [esp + 0x80]
push eax
push 0x120089
lea ecx, [esp + 0x40]
push ecx
call fcn.00448890
push 0x100
lea ecx, [esp + 0x14]
call fcn.0043e430
mov edi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [0x100cca70]
push ebx
push edx
push 1
push edi
push eax
push ecx
lea ecx, [esp + 0x54]
add esi, 0x54c
call fcn.004980e0
mov ecx, eax
call fcn.004c87c0
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esi]
push ebx
push ebx
push ebx
push edx
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
call eax
cmp eax, 0xc0000004
je 0x4663c0
cmp eax, 0x80000005
je 0x4663c0
cmp eax, 0xc0000023
je 0x4663c0
cmp eax, ebx
jne 0x46653b
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov dword [esp + 0x50], eax
add eax, 8
shr esi, 1
mov dword [esp + 0x2c], eax
add esi, 1
lea eax, [esi + esi]
push eax
mov dword [esp + 0x40], eax
call fcn.00459050
mov edx, dword [esp + 0x54]
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ecx
add edx, 0xc
push edx
push edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
call fcn.00458f30
mov eax, dword [esp + 0x4c]
push 1
push 0x100bc5f4
push edi
mov word [eax + edi - 2], bx
call fcn.004605d0
add esp, 0x1c
test eax, eax
jne 0x46653b
mov esi, dword [esp + 0x14]
cmp esi, 0x16
je 0x4664d0
mov edi, dword [esp + 0x10]
push 0x16
call fcn.00459050
add esp, 4
cmp esi, 0x16
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x16
jb 0x4664b0
mov esi, 0x16
xor eax, eax
cmp esi, ebx
jbe 0x4664c7
mov cl, byte [eax + edi]
mov edx, dword [esp + 0x10]
mov byte [eax + edx], cl
add eax, 1
cmp eax, esi
jb 0x4664b6
push edi
call fcn.00459000
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esi + 8]
mov dword [eax], 4
mov eax, dword [eax]
push eax
lea ecx, [esi + 0xc]
push 0x100bc62c
push ecx
call fcn.00458f30
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov dword [esi], ebx
call fcn.004841a0
push 0x100bc62c
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0043e5a0
lea eax, [esp + 0x3c]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00465640
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x46653b
push eax
call fcn.00459000
add esp, 4
mov ecx, dword [0x100cca70]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x2ac]
add ecx, 0x2ac
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x466600
push eax
call fcn.00459000
add esp, 4
jmp 0x466600
push 0x100bc62c
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0043e5a0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.0043e5a0
lea ecx, [esp + 0x30]
call fcn.0043e810
mov edi, dword [esp + 0x24]
lea edi, [edi + edi + 0xe]
push edi
lea ecx, [esp + 0x14]
call fcn.0043e430
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00458f10
mov ecx, dword [esp + 0x28]
add esp, 8
push ecx
call dword [0x100b00c8]
add eax, eax
mov dword [esi + 8], eax
mov edx, dword [esp + 0x20]
push edx
add esi, 0xc
push esi
call dword [0x100b00c4]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.004841a0
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.00465640
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x466611
push eax
call fcn.00459000
add esp, 4
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x1c], ebx
je 0x46673b
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x46686f
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00458f10
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0x28]
call fcn.00465380
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x466723
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
test eax, eax
jne 0x466723
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
test eax, eax
jne 0x466723
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00498160
mov ecx, eax
call fcn.004c87c0
push eax
call fcn.00485ae0
add esp, 8
test eax, eax
je 0x466723
mov esi, dword [esp + 0x24]
lea esi, [esi + esi + 0xe]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0043e430
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.00458f10
mov eax, dword [esp + 0x28]
add esp, 8
push eax
call dword [0x100b00c8]
add eax, eax
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x20]
push eax
push ecx
add edi, 0xc
push edi
call fcn.00458f30
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.004841a0
lea eax, [esp + 0x20]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00465640
lea ecx, [esp + 0x10]
call fcn.0043e570
lea ecx, [esp + 0x18]
call fcn.0048e940
cmp dword [esp + 0x2c], ebx
jne 0x46662e
jmp 0x46686f
lea ecx, [esp + 0x84]
call fcn.00498320
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x78]
push eax
push ebx
mov ecx, esi
call edx
test eax, eax
jne 0x466863
mov edi, edi
lea ecx, [esp + 0x84]
call fcn.004c87c0
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0043f740
add esp, 8
push eax
lea ecx, [esp + 0x24]
call fcn.0043f190
lea ecx, [esp + 0x54]
call fcn.0043e810
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00498160
mov ecx, eax
call fcn.004c87c0
push eax
call fcn.00485ae0
add esp, 8
test eax, eax
jne 0x4667c1
lea ecx, [esp + 0x84]
call fcn.00498440
jmp 0x466840
mov esi, dword [esp + 0x24]
lea esi, [esi + esi + 0xe]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.0043e430
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.00458f10
mov eax, dword [esp + 0x28]
add esp, 8
push eax
call dword [0x100b00c8]
add eax, eax
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x20]
push eax
push ecx
add edi, 0xc
push edi
call fcn.00458f30
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.004841a0
lea eax, [esp + 0x20]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00465640
lea ecx, [esp + 0x10]
call fcn.0043e570
lea ecx, [esp + 0x84]
call fcn.00498440
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x84]
call fcn.00498320
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x78]
push eax
push ebx
mov ecx, esi
call edx
test eax, eax
je 0x466760
lea ecx, [esp + 0x84]
call fcn.00498440
lea ecx, [esp + 0x48]
call fcn.0043e570
lea ecx, [esp + 0x20]
call fcn.0043e810
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24