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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
xor edx, edx
push ebp
push esi
xor esi, esi
xor ebp, ebp
mov eax, dword [ebx]
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov eax, dword [eax]
mov dword [esp + 0x54], eax
cmp word [esp + 0xb0], dx
je 0x49034b
test byte [eax + 0x3c], 0x80
jne 0x490d02
mov eax, dword [esp + 0xa4]
movzx eax, word [eax]
mov dword [esp + 0x98], eax
cmp eax, 0x3f
ja 0x490d02
movzx ecx, ax
xor edi, edi
mov eax, ecx
mov dword [esp + 0x30], ecx
bts edi, eax
mov byte [esp + 0x28], 1
xor ecx, ecx
mov dword [esp + 0x58], edx
cmp eax, 0x20
mov dword [esp + 0x5c], edx
mov dword [esp + 0x4c], edx
cmovae ecx, edi
mov dword [esp + 0x50], edx
xor edi, ecx
cmp eax, 0x40
mov eax, ecx
mov ecx, dword [esp + 0x30]
cmovae eax, edi
add edi, 0xffffffff
mov dword [esp + 0x68], edi
adc eax, 0xffffffff
xor edi, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x48]
cmp ebp, eax
ja 0x490c80
jb 0x4903ca
cmp esi, dword [esp + 0x68]
jae 0x490c84
movzx eax, word [esp + 0xb0]
cmp edi, eax
jg 0x490ca2
test edi, edi
jle 0x4903fb
mov ebx, dword [esp + 0x4c]
or ebx, dword [edx + 8]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x50]
or ebx, dword [edx + 0xc]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0xa0]
cmp edi, eax
jge 0x49040e
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edi*4]
jmp 0x490415
mov eax, dword [esp + 0xb4]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x34], eax
test edx, 0x400
jne 0x490c9c
movzx eax, byte [eax + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
shl ecx, 4
mov edi, dword [ecx + eax + 0x38]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x30], eax
jbe 0x49060a
xor edx, edx
mov dword [esp + 0x18], edx
xor ebp, ebp
xor ebx, ebx
bts ebp, eax
cmp eax, 0x20
cmovae ebx, ebp
xor ebp, ebx
cmp eax, 0x40
mov ecx, ebp
cmovae ebx, ebp
and ecx, esi
mov eax, ebx
mov dword [esp + 0x40], ebx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x4905e1
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
mov esi, dword [edx + eax]
test esi, esi
je 0x4904b2
nop
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x4904b2
test eax, 0x40000
je 0x4904ab
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
jmp 0x4904ae
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x490490
cmp byte [esi], 0x9a
jne 0x4905dd
cmp dword [esi + 0x18], edi
jne 0x4905dd
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
not eax
push 0
push 0x82
push eax
movsx eax, word [esi + 0x1c]
not ecx
push ecx
push eax
mov eax, dword [esp + 0xb4]
add eax, 0x148
push edi
push eax
call fcn.0042fb70
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x4905d9
test byte [edi + 0x12], 2
je 0x4905bf
cmp word [esi + 0x1c], 0
jl 0x4905bf
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
push dword [eax + ecx]
mov eax, dword [esp + 0xa4]
push dword [eax]
call fcn.00456840
add esp, 8
test eax, eax
jne 0x490540
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0xa0]
push dword [edi]
push dword [eax]
call fcn.00456840
add esp, 8
test eax, eax
jne 0x490560
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 8]
mov edx, dword [eax]
test esi, esi
jne 0x49056c
neg edx
sbb edx, edx
jmp 0x4905bb
test edx, edx
je 0x4905d9
mov bl, byte [esi]
test bl, bl
je 0x4905a1
mov al, bl
sub esi, edx
lea ebx, [ebx]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x4ea938]
cmp al, byte [ecx + 0x4ea938]
jne 0x4905a1
mov al, byte [edx + esi + 1]
inc edx
mov bl, al
test al, al
jne 0x490580
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x4ea938]
movzx eax, bl
mov ebx, dword [esp + 0x40]
movzx edx, byte [eax + 0x4ea938]
sub edx, ecx
test edx, edx
jne 0x4905d9
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
or esi, ebp
mov ebp, dword [esp + 0x10]
or ebp, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
jmp 0x4905e5
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 0x18
inc eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x30]
jl 0x490453
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x24]
jmp 0x49060e
mov esi, dword [esp + 0x34]
test edx, 0x1000
jne 0x49095f
test edx, 0x100
je 0x490631
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
lea eax, [ebx + 1]
jmp 0x49065f
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x44], ebx
test ebx, ebx
je 0x490d02
test byte [ebx + 0x34], 4
jne 0x490d02
movzx eax, word [ebx + 0x2e]
cmp byte [ebx + 0x32], 0
mov dword [esp + 0x40], eax
movzx eax, word [ebx + 0x30]
setne byte [esp + 0x28]
movzx eax, ax
xor cl, cl
xor edx, edx
mov byte [esp + 0x27], 0
mov byte [esp + 0x26], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x64], eax
test eax, eax
je 0x49095f
movzx ecx, word [esi + 0x18]
cmp edx, ecx
jge 0x4906bb
cmp word [esi + 0x2a], 0
jne 0x4906bb
mov eax, dword [esi + 0x30]
mov eax, dword [eax + edx*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0x4906bb
test al, 0x80
mov ecx, 0
mov eax, dword [esp + 0x28]
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x28], cl
jmp 0x490947
test ebx, ebx
je 0x4906e1
mov eax, dword [ebx + 4]
movsx esi, word [eax + edx*2]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], esi
mov al, byte [edx + eax]
mov byte [esp + 0x1f], al
mov eax, dword [ebx + 0xc]
movsx eax, word [eax + 0x20]
cmp esi, eax
jne 0x4906ed
jmp 0x4906e6
mov byte [esp + 0x1f], 0
or esi, 0xffffffff
mov dword [esp + 0x18], esi
cmp byte [esp + 0x28], 0
je 0x49071a
test esi, esi
js 0x49071a
cmp edx, ecx
jl 0x49071a
mov eax, dword [ebx + 0xc]
lea ecx, [esi + esi*2]
mov edx, dword [esp + 0x28]
xor edi, edi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x14], 0
cmove edx, edi
mov dword [esp + 0x28], edx
xor edi, edi
mov bh, 1
xor ebp, ebp
cmp edi, dword [esp + 0x30]
jge 0x49086b
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x49085f
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebp]
mov edx, eax
test eax, eax
je 0x490788
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x490788
test ecx, 0x40000
je 0x490781
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
jmp 0x490784
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x490764
mov ecx, dword [esp + 0xac]
and ecx, 0x300
neg ecx
sbb cl, cl
and bh, cl
cmp byte [eax], 0x9a
mov cl, bh
mov bl, bh
mov byte [esp + 0x2f], cl
jne 0x49085f
mov esi, dword [esp + 0x38]
cmp dword [eax + 0x18], esi
mov esi, dword [esp + 0x18]
jne 0x49085f
movsx eax, word [eax + 0x1c]
cmp eax, esi
jne 0x49085f
test esi, esi
js 0x4908a0
mov eax, dword [esp + 0xa0]
push edx
push dword [eax]
call fcn.00456840
mov esi, eax
add esp, 8
test esi, esi
jne 0x4907f0
mov eax, dword [esp + 0x54]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esi]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + ecx*4]
test esi, esi
jne 0x49080a
neg ecx
sbb ecx, ecx
jmp 0x490857
test ecx, ecx
jne 0x490812
mov bh, bl
jmp 0x49085f
mov bl, byte [esi]
mov edx, ecx
test bl, bl
je 0x490841
mov al, bl
sub esi, ecx
mov edi, edi
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x4ea938]
cmp al, byte [ecx + 0x4ea938]
jne 0x490841
mov al, byte [edx + esi + 1]
inc edx
mov bl, al
test al, al
jne 0x490820
movzx eax, bl
movzx ecx, byte [eax + 0x4ea938]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x4ea938]
sub ecx, eax
mov bh, byte [esp + 0x2f]
test ecx, ecx
je 0x49089c
inc edi
add ebp, 0x18
test bh, bh
jne 0x490720
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x49087e
mov eax, dword [esp + 0x40]
movzx eax, ax
cmp edx, eax
jge 0x490883
mov byte [esp + 0x28], 0
mov ebp, dword [esp + 0x10]
cmp byte [esp + 0x20], 0
je 0x49095f
mov byte [esp + 0x28], 1
jmp 0x49096a
mov esi, dword [esp + 0x18]
test dword [esp + 0xac], 0x100
jne 0x490907
cmp byte [esp + 0x27], 0
lea ecx, [edi + edi*2]
mov eax, dword [esp + 0xa4]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 0xc]
je 0x4908d3
mov cl, byte [esp + 0x1f]
xor cl, byte [esp + 0x26]
cmp cl, al
jne 0x49086b
jmp 0x490907
xor al, byte [esp + 0x1f]
mov byte [esp + 0x26], al
je 0x490902
mov eax, dword [esp + 0x60]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0xb8]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x20]
test esi, esi
mov ebp, dword [esp + 0x10]
mov ecx, 1
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
movzx eax, al
cmovs eax, ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
xor eax, eax
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x14], eax
or ebp, ecx
mov dword [esp + 0x10], ebp
inc edx
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x64]
jge 0x490887
mov ebx, dword [esp + 0x44]
jmp 0x490684
cmp byte [esp + 0x28], 0
je 0x490c55
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
or eax, dword [edx + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
or eax, dword [edx + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x490c5d
xor esi, esi
mov dword [esp + 0x18], esi
lea esp, [esp]
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x90], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0x94], edx
and eax, ebp
or ecx, eax
jne 0x490c37
mov eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
add ebp, 0x44
mov dword [esp + 0x40], ebp
mov eax, dword [eax + 4]
mov ebx, dword [esi + eax]
mov dword [esp + 0x8c], ebx
test ebx, ebx
jne 0x490a04
xor ebp, ebp
mov dword [esp + 0x20], ebp
jmp 0x490b04
cmp byte [ebx], 0x9a
jne 0x490a47
mov edx, dword [ebp]
xor eax, eax
test edx, edx
jle 0x490a24
mov esi, dword [ebx + 0x18]
lea ecx, [ebp + 4]
cmp dword [ecx], esi
je 0x490a2d
inc eax
add ecx, 4
cmp eax, edx
jl 0x490a18
xor esi, esi
xor edi, edi
jmp 0x490af2
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
cmovae edi, esi
jmp 0x490af2
push dword [ebx + 0x10]
push ebp
call fcn.0042f3d0
push dword [ebx + 0xc]
mov esi, eax
mov edi, edx
push ebp
call fcn.0042f3d0
mov ebp, dword [ebx + 0x14]
or esi, eax
or edi, edx
mov dword [esp + 0x48], esi
add esp, 0x10
mov dword [esp + 0x88], edi
test dword [ebx + 4], 0x800
je 0x490a8e
push ebp
push dword [esp + 0x44]
call fcn.0042f100
add esp, 8
or esi, eax
or edi, edx
jmp 0x490af2
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
test ebp, ebp
je 0x490aee
cmp dword [ebp], eax
jle 0x490aee
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov edi, eax
jmp 0x490ab0
mov eax, dword [ebp + 4]
push dword [eax + ebx]
push esi
call fcn.0042f3d0
mov ecx, dword [esp + 0x28]
lea ebx, [ebx + 0x18]
or ecx, eax
inc edi
mov eax, dword [esp + 0x4c]
add esp, 8
or eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], eax
cmp edi, dword [ebp]
jl 0x490ab0
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
or esi, ecx
or edi, eax
mov ebp, esi
mov dword [esp + 0x20], edi
or esi, edi
jne 0x490bf5
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x6c], 0x42eff0
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], 1
mov dword [esp + 0x70], 0x447120
mov dword [esp + 0x84], eax
test ebx, ebx
je 0x490bf5
movzx eax, byte [ebx]
add eax, 0xffffffe5
cmp eax, 0x81
ja case.0x490b54.28
movzx eax, byte [eax + 0x490d20]
jmp dword [eax*4 + 0x490d10]
test dword [ebx + 4], 0x80000
jne case.0x490b54.28
mov byte [esp + 0x80], 0
jmp 0x490c33
test dword [ebx + 4], 0x4000
jne 0x490bf5
push dword [ebx + 0xc]
lea eax, [esp + 0x70]
push eax
call fcn.00482c90
add esp, 8
test eax, eax
jne 0x490beb
push dword [ebx + 0x10]
lea eax, [esp + 0x70]
push eax
call fcn.00482c90
add esp, 8
test eax, eax
jne 0x490beb
test dword [ebx + 4], 0x800
mov edi, dword [ebx + 0x14]
je 0x490bc2
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.00482d50
add esp, 8
jmp 0x490beb
test edi, edi
je 0x490beb
mov esi, dword [edi]
mov edi, dword [edi + 4]
test esi, esi
jle 0x490beb
nop
push dword [edi]
lea eax, [esp + 0x70]
push eax
call fcn.00482c90
add esp, 8
test eax, eax
jne 0x490beb
dec esi
add edi, 0x18
test esi, esi
jg 0x490bd0
cmp byte [esp + 0x80], 0
je 0x490c2f
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
not ecx
mov esi, dword [esp + 0x18]
not eax
and eax, dword [esp + 0x20]
and ecx, ebp
or ecx, eax
mov ebp, dword [esp + 0x10]
jne 0x490c37
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x90]
or ebp, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
jmp 0x490c37
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
add esi, 0x18
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
cmp eax, ecx
jl 0x4909a0
jmp 0x490c59
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
inc edi
cmp byte [esp + 0x28], 0
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x60], edi
jne 0x4903b2
mov eax, dword [esp + 0x48]
cmp esi, dword [esp + 0x68]
jne 0x490ca2
cmp ebp, eax
jne 0x490ca2
mov al, byte [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
cmp byte [eax + 0x1d], 0
jne 0x490c8a
cmp byte [esp + 0x28], 0
jne 0x490cf5
lea ebx, [ecx - 1]
test ebx, ebx
jle 0x490d02
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
mov eax, ecx
adc edx, 0xffffffff
and eax, esi
mov esi, edx
and esi, ebp
cmp eax, ecx
jne 0x490cdd
cmp esi, edx
je 0x490ce8
dec ebx
test ebx, ebx
jle 0x490d02
mov esi, dword [esp + 0x14]
jmp 0x490cb0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x8c
ret
pop edi
pop esi
pop ebp
or al, 0xff
pop ebx
add esp, 0x8c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x8c
ret