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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed640
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
call fcn.00490680
mov ecx, dword [0x5284a0]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4901c2
mov ecx, dword [ecx + 0x38]
push 0x4915a0
push 0x28
push eax
push ecx
call fcn.004cf440
add esp, 0x10
lea esi, [esp + 0x24]
call fcn.00468320
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4f5b64
mov dword [esp + 0x5c], 1
call fcn.0045ab70
mov byte [esp + 0x58], 2
mov ebx, dword [0x5284a0]
mov eax, dword [ebx + 0x3c]
cmp eax, 4
jle 0x490285
lea edi, [eax - 1]
mov dword [esp + 0x18], edi
cmp edi, 3
jle 0x490271
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x14], eax
inc edi
cmp edi, dword [esp + 0x18]
jb 0x49027b
cmp edi, 1
jb 0x49027b
mov eax, dword [ebx + 0x3c]
cmp edi, eax
ja 0x49027b
mov esi, dword [ebx + 0x38]
add esi, dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x1c], eax
call fcn.004683b0
cmp dword [esp + 0x1c], 0
jbe 0x490254
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0x14]
lea ecx, [eax + edx + 0x28]
add edx, eax
mov eax, dword [esp + 0x1c]
call fcn.0046cd70
mov eax, dword [esp + 0x18]
dec dword [ebx + 0x3c]
sub dword [esp + 0x14], 0x28
mov ebx, dword [0x5284a0]
dec eax
dec edi
mov dword [esp + 0x18], eax
cmp eax, 3
jg 0x490213
mov dword [esp + 0x1c], 4
jmp 0x490289
push 0x80070057
call fcn.00459710
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], eax
jle 0x49062b
mov dword [esp + 0x18], eax
jmp 0x4902a6
mov ebx, dword [0x5284a0]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebx + 0x3c]
jae 0x49027b
mov edi, dword [ebx + 0x38]
add edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x24], edx
cmp eax, esi
je 0x490316
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x490308
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x490308
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4902fb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x28], ecx
jmp 0x490316
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0045aa80
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x2c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x490370
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x490362
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x490362
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x490355
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x490370
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0045aa80
mov ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x30]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4903ca
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4903bc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4903bc
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4903af
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x30], ecx
jmp 0x4903ca
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0045aa80
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x34]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x490424
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x490416
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x490416
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x490409
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x34], ecx
jmp 0x490424
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0045aa80
mov ecx, dword [edi + 0x14]
mov esi, dword [esp + 0x38]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49047e
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x490470
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x490470
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x490463
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x49047e
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0045aa80
mov ecx, dword [edi + 0x18]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4904d8
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4904ca
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4904ca
call fcn.0045c3c0
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4904bd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esp + 0x3c], ecx
jmp 0x4904d8
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0045aa80
mov eax, dword [edi + 0x1c]
mov esi, dword [esp + 0x10]
mov ecx, dword [edi + 0x20]
mov dl, byte [edi + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esi, 0xfffffff0
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], dl
cmp eax, esi
je 0x490546
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x490534
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x490534
call fcn.0045c3c0
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x49052b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x490546
mov eax, dword [esp + 0x30]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0045aa80
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x70]
mov edx, dword [edx + 0x3c]
add ecx, 0x70
add eax, 0x3e8
push eax
call edx
mov esi, eax
test esi, esi
je 0x490613
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
mov edx, dword [esp + 0x10]
lea ebx, [esi + 0x78]
test edx, edx
jne 0x490582
xor eax, eax
jmp 0x490596
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490587
sub eax, edi
sar eax, 1
push edx
push ebx
mov ebx, eax
call fcn.0045aa80
cmp byte [esi + 0x24], 0
je 0x4905d7
cmp byte [esi + 0x25], 0
je 0x4905d7
cmp byte [esi + 0x26], 0
je 0x4905d7
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4905d7
mov eax, dword [esi + 4]
test eax, eax
je 0x4905d7
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x490613
cmp byte [esi + 0x25], 0
je 0x490613
cmp byte [esi + 0x26], 0
je 0x490613
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x490613
mov eax, dword [esi + 4]
test eax, eax
je 0x490613
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0x28
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x1c]
jl 0x4902a0
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.004683b0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4