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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
mov eax, dword [str.TlsFree]
xor eax, esp
mov dword [esp + 0x2a4], eax
mov eax, ecx
mov dword [esp + 0xc], 0
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 0x68]
mov edi, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 8], ecx
xor cl, cl
mov byte [esp + 0x73], cl
mov cl, byte [edi + 0x4e]
mov byte [esp + 0x64], cl
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x84], 0
movlpd qword [esp + 0xa8], xmm0
call fcn.00496e10
cmp dword [edi + 0x158], 0
mov ecx, dword [esp + 0xc]
je 0x49da10
mov esi, dword [edi + 0x160]
xor edx, edx
mov eax, dword [ecx + 0xb4]
div esi
sub esi, edx
xor eax, eax
jmp 0x49da16
or esi, 0xffffffff
or eax, 0xffffffff
cmp dword [ecx + 0x28], 7
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], esi
je 0x4a4a1a
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x78], 0
cmp dword [edi + 0x110], 0
mov dword [edi + 0x1ac], 0
jne 0x4a49fa
mov eax, dword [ecx + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
add eax, 1
mov dword [esp + 8], esi
mov dword [esp + 0x1c], eax
adc ecx, 0
mov dword [esp + 0x18], ecx
mov cl, byte [esi]
movzx edx, cl
mov byte [esp + 0x4f], cl
mov dword [esp + 0x28], edx
cmp edx, 0xaa
ja 0x49db0e
jmp dword [edx*4 + 0x4a4050]
mov ecx, dword [esp + 0x18]
add esi, 0x14
jmp 0x49da79
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp byte [edi + 0x51], 0
mov edx, 7
cmovne eax, edx
cmp dword [ecx + 0x7c], 0
mov dword [esp + 0x14], eax
jne 0x4a4a7f
cmp eax, 0xc0a
je 0x4a4a7f
mov ecx, 0x66d28c
sub eax, 0x64
je 0x4a4a60
sub eax, 1
je 0x4a4a59
sub eax, 0x19f
je 0x4a4a52
mov eax, dword [esp + 0x14]
movzx eax, al
cmp eax, 0x1d
jae 0x4a4a65
mov eax, dword [eax*4 + 0x65f2e8]
test eax, eax
je 0x4a4a65
mov ecx, eax
jmp 0x4a4a65
cmp byte [edi + 0x51], 0
jne 0x4a47de
cmp byte [edi + 0x52], 0
jne 0x4a47de
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x4a47be
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x4a47de
mov dword [eax + 0xc], 7
push str.kernel32
push ecx
call fcn.00495760
add esp, 8
mov eax, 7
jmp 0x49f4b3
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
mov eax, 9
jmp 0x49f4b3
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
jmp 0x4a479b
mov ecx, 0x66d29c
jmp 0x4a4a65
mov ecx, 0x66d2cc
jmp 0x4a4a65
mov ecx, 0x66d2b4
push ecx
push 0x668540
push dword [esp + 0x14]
call fcn.00495760
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x28], eax
cmp eax, 0xc0a
je 0x4a4ab0
movzx eax, al
cmp eax, 0xe
je 0x4a4a96
cmp eax, 0xa
jne 0x4a4ab0
mov eax, dword [edi]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4a4aab
push 0
push 0
push eax
call ecx
add esp, 0xc
jmp 0x4a4aad
xor eax, eax
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub ecx, esi
push dword [eax + 0x7c]
push dword [eax + 0xc0]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0x6690a4
push dword [esp + 0x24]
call fcn.00479000
mov ecx, dword [esp + 0x20]
add esp, 0x14
call fcn.00498510
cmp dword [esp + 0x14], 0xc0a
jne 0x4a4b3c
cmp byte [edi + 0x51], 0
jne 0x4a4b3c
cmp byte [edi + 0x52], 0
jne 0x4a4b3c
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x4a4b1c
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x4a4b3c
mov dword [eax + 0xc], 7
mov al, byte [esp + 0x73]
mov dword [esp + 0x14], 1
test al, al
je 0x4a4bb0
movzx ecx, al
sub ecx, 1
js 0x4a4b71
mov eax, dword [edi + 0x10]
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
or word [eax + 0x4e], 8
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 8
and dword [edi + 0x18], 0xffffffef
cmp dword [edi + 0x38], 0
jne 0x4a4bb0
mov eax, dword [esp + 0x10]
xor edi, edi
cmp dword [eax + 0x14], edi
jle 0x4a4ba7
xor esi, esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi + 0xc]
test byte [eax + 0x4e], 8
je 0x4a4b9a
push eax
call fcn.004bf820
add esp, 4
mov eax, dword [esp + 0x10]
inc edi
add esi, 0x10
cmp edi, dword [eax + 0x14]
jl 0x4a4b84
mov edi, eax
jmp 0x4a4bb0
mov edx, dword [esp + 0x80]
cmp dword [esp + 0x18], edx
jb 0x4a4c19
mov ecx, dword [esp + 0x74]
ja 0x4a4bc9
cmp dword [esp + 0x1c], ecx
jb 0x4a4c19
mov eax, dword [edi + 0x158]
test eax, eax
je 0x4a4c19
add ecx, dword [edi + 0x160]
push dword [edi + 0x15c]
adc edx, 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], edx
call eax
add esp, 4
test eax, eax
je 0x4a4bb0
or esi, 0xffffffff
or eax, 0xffffffff
mov dword [esp + 0x80], eax
mov eax, 9
mov dword [esp + 0x74], esi
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
jmp 0x49f4bb
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
add dword [edx + 0xb4], ecx
cmp dword [edx + 0xa0], 0
je 0x4a4c37
mov ecx, edx
call fcn.00496e80
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.005b3650
mov esp, ebp
pop ebp
ret