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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302b4
call 0x4e92e0
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
mov word [esp + 0x102c8], ax
lea eax, [esp + 0x102ca]
push eax
call 0x4d9bd0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004845d1
lea ecx, [esp + 0x48]
call fcn.004845d1
lea ecx, [esp + 0x38]
call fcn.004845d1
lea ecx, [esp + 0x28]
call fcn.004845d1
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
push 0x46df88
call fcn.0049605d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x7fff
push ecx
call fcn.004957b1
pop ecx
push eax
lea eax, [esp + 0x2c8]
push eax
call 0x4d9c4a
xor eax, eax
add esp, 0xc
mov word [esp + 0x102be], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0x104
push ecx
call fcn.004957b1
pop ecx
push eax
lea eax, [esp + 0xb8]
push eax
call 0x4d9c4a
xor eax, eax
mov word [esp + 0x2c4], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add esp, 0xc
call fcn.004957b1
push eax
call fcn.00492473
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
pop ecx
mov dword [esp + 0x24], esi
call fcn.004957e5
xor ecx, ecx
push 0x46e064
push esi
mov word [esi + eax*2], cx
call 0x4dab48
pop ecx
pop ecx
test eax, eax
je 0x4a1b0b
push eax
lea eax, [esp + 0x2c]
call fcn.00484d4f
push 0x473734
lea edx, [esp + 0x2c]
call fcn.004a4cc8
push 0x473738
lea edx, [esp + 0x2c]
mov edi, eax
call fcn.004a4cc8
mov ebx, eax
cmp edi, 0xffffffff
je 0x4a1b8a
cmp ebx, 0xffffffff
je 0x4a1b8a
cmp ebx, edi
jb 0x4a1b8a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
call fcn.00486c0a
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00484627
mov eax, ebx
lea ecx, [esp + 0x28]
sub eax, edi
push ecx
dec eax
lea ebx, [edi + 1]
lea ecx, [esp + 0x4c]
call fcn.0048750c
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.00486c0a
mov edi, 0x46e064
push edi
call fcn.00484627
push edi
push 0
call 0x4dab48
pop ecx
pop ecx
test eax, eax
jne 0x4a1a69
mov ebx, dword [ebp + 0xc]
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00484627
xor esi, esi
inc esi
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x4a1b48
lea eax, [esp + 0x10]
call fcn.00484c2d
cmp word [eax], 0x7c
jne 0x4a1b41
lea eax, [esp + 0x10]
call fcn.00484c2d
xor ecx, ecx
mov word [eax], cx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4a1b24
push dword [esp + 0x24]
call 0x4d7e6c
cmp dword [ebp + 0x14], 6
pop ecx
jb 0x4a1b67
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
call fcn.004959e6
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x14], 5
jb 0x4a1bab
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.004957b1
push eax
lea eax, [esp + 0x102c4]
push eax
call 0x4d81f7
pop ecx
pop ecx
jmp 0x4a1bb5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.0049b6a2
mov dword [eax + 0x14], 2
lea eax, [esi + 4]
jmp 0x4a1d65
xor eax, eax
mov word [esp + 0x102c0], ax
push 0x58
pop edi
push edi
lea eax, [esp + 0x5c]
push 0
push eax
call 0x4d9bd0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x102cc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x80], eax
add esp, 0xc
lea eax, [esp + 0xb0]
xor edi, edi
cmp dword [ebp + 0x14], 4
mov dword [esp + 0x78], 0xffff
mov dword [esp + 0x84], eax
jb 0x4a1cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
cmp eax, 0x1f
jg 0x4a1cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
test eax, eax
js 0x4a1cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, 0x80004
call fcn.00495892
test al, 0x10
je 0x4a1c54
add edi, 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
test al, 8
je 0x4a1c69
or edi, 0x2000
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
test al, 4
je 0x4a1c7e
or edi, 0x200
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
test al, 2
je 0x4a1c93
or edi, 0x800
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00495892
test al, 1
je 0x4a1ca8
or edi, 0x1000
mov dword [esp + 0x8c], edi
jmp 0x4a1cbc
mov dword [esp + 0x8c], 0x80004
cmp byte [ebp + 0x18], 0
lea eax, [esp + 0x58]
push eax
je 0x4a1d35
call dword [0x46b0c0]
test eax, eax
je 0x4a1d4d
push dword [esp + 0x74]
test edi, 0x200
je 0x4a1d43
call 0x4d7e51
pop ecx
push dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.00484d4f
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*2 + 2]
jmp 0x4a1d25
push eax
call 0x4d7e51
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [esp], 0x46e064
call fcn.00484627
push dword [esp + 0x74]
call fcn.00484627
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*2 + 2]
mov dword [esp + 0x74], eax
cmp word [eax], 0
jne 0x4a1cfc
push dword [esp + 0x38]
jmp 0x4a1d43
call dword [0x46b0bc]
test eax, eax
je 0x4a1d4d
push dword [esp + 0x74]
mov edi, dword [ebp + 0x10]
call fcn.0049605d
jmp 0x4a1d6e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
add edi, ecx
lea eax, [edi + 4]
call fcn.0049b6a2
mov dword [eax + 0x14], esi
lea eax, [edi + 4]
call fcn.0049b6a2
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.00484604
lea ecx, [esp + 0x38]
call fcn.00484604
lea ecx, [esp + 0x48]
call fcn.00484604
lea ecx, [esp + 0x10]
call fcn.00484604
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14