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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x64]
xor ebx, ebx
mov esi, ebp
mov dword [esp + 0x1c], esi
cmp byte [edi + 0x40], bl
je 0x49e6d9
cmp dword [edi + 0x18c], ebx
jne 0x49e6d9
push edi
mov dword [edi + 0x18c], 1
call fcn.004a14b0
add dword [edi + 0x18c], ebp
cmp dword [edi + 0x184], ebx
jne 0x49e9de
cmp byte [edi + 0x48], bl
je 0x49e9de
mov dword [edi + 0x184], 1
cmp byte [edi + 0x40], bl
jne 0x49e9d8
mov eax, dword [edi + 0x60]
cmp eax, dword [edi + 0x58]
lea esi, [edi + 0x4c]
sete byte [esp + 0x17]
mov byte [esp + 0x16], bl
call fcn.004a5a30
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jle 0x49e9b6
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx + 8]
dec eax
add edi, 0x4c
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [edi]
lea ebp, [eax + edx*4]
mov eax, dword [ebp]
cmp eax, 1
jne 0x49e763
mov dword [esp + 0x38], 0x420
jmp 0x49e7d9
cmp eax, 3
jne 0x49e7d1
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x64]
sub esp, 0x28
mov edi, esp
mov dword [esp + 0x84], edx
mov ecx, 0xa
lea esi, [esp + 0x60]
mov dword [esp + 0x60], 0x40020
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004a1630
cmp byte [ebp + 0x10], bl
jne 0x49e829
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
jmp 0x49e829
mov dword [esp + 0x38], 0x820
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
sub esp, 0x28
mov edi, esp
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
mov ecx, 0xa
lea esi, [esp + 0x60]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004a1630
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 0x58]
lea esi, [edi + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
cmp ecx, ebx
jne 0x49e853
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
push edx
push esi
call fcn.004a6410
jmp 0x49e86a
cmp ecx, 1
jne 0x49e86a
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
push esi
call fcn.004a5fb0
or edx, 0xffffffff
add dword [esi + 0x48], edx
cmp dword [ebp], 3
je 0x49e88e
mov eax, dword [ebp + 4]
cmp dword [edi + 0x17c], eax
jle 0x49e887
mov dword [edi + 0x17c], eax
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp]
mov ecx, 0x20
cmp eax, 1
jne 0x49e8ed
mov eax, dword [ebp + 0xc]
add dword [esp + 0x1c], eax
cmp dword [esp + 0x18], ebx
mov ecx, 0x21
jle 0x49e8dc
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x24]
cmp edx, esi
je 0x49e8c2
mov edi, dword [esp + 0x28]
add edi, esi
cmp edx, edi
jne 0x49e8dc
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add esi, eax
mov dword [esp + 0x18], esi
add esi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
jmp 0x49e902
mov edx, dword [ebp + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
jmp 0x49e902
cmp eax, ebx
jne 0x49e906
mov ecx, 0x22
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
mov edi, dword [esp + 0x30]
cmp edi, 1
jle 0x49e915
or ecx, 0x80
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x70]
mov esi, dword [eax + 8]
sub esi, dword [esp + 0x34]
sub esi, 1
je 0x49e92d
mov byte [esp + 0x16], 1
lea eax, [edi - 1]
cmp dword [esp + 0x2c], eax
jne 0x49e948
or ecx, 0x100
cmp byte [esp + 0x16], bl
je 0x49e948
or ecx, 0x1000
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x3c], ecx
sub esp, 0x28
mov dword [esp + 0x6c], esi
mov edi, esp
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
mov ecx, 0xa
lea esi, [esp + 0x60]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.004a1630
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x64]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
jl 0x49e738
or ebp, 0xffffffff
mov edx, dword [edi + 0x60]
cmp edx, dword [edi + 0x58]
sete al
mov byte [esp + 0x64], al
cmp byte [esp + 0x17], al
je 0x49e9d4
mov eax, dword [esp + 0x64]
push eax
push edi
call fcn.004a1570
mov esi, dword [esp + 0x1c]
add dword [edi + 0x184], ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4