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

Disassembly:
sub esp, 0x1c
push esi
mov esi, eax
cmp dword [esi + 0xb4], 0
je 0x49158c
cmp dword [esi + 0xd4], 0
je 0x49157b
lea ecx, [esi + 0xd8]
call fcn.004897f0
test eax, eax
jne 0x491e21
mov ecx, dword [esi]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0xb4], 0
cmp dword [esi + 0xac], 0
je 0x4915a2
mov eax, dword [esi + 0xd0]
pop esi
add esp, 0x1c
ret 8
mov ecx, esi
call fcn.00490d50
test eax, eax
jne 0x491e21
push ebx
push ebp
mov ebp, dword [esi + 0xb8]
mov ecx, ebp
or ecx, dword [esi + 0xbc]
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x491652
mov ecx, dword [esi]
mov edx, dword [esi + 8]
call edx
test eax, eax
jne 0x4915ed
push ebp
mov edi, esi
call fcn.00490db0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 8
lea eax, [esp + 0x28]
push eax
mov eax, esi
call fcn.0048f590
movzx eax, word [esi + 0x1eb0]
mov ebx, dword [esi + 0x58]
lea edi, [esi + 0x58]
shr ebx, 0xb
imul ebx, eax
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [esi + 0x1eb0], cx
cmp ebx, 0x1000000
jae 0x491631
mov eax, edi
shl ebx, 8
call fcn.0048ee00
mov dword [edi], ebx
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
call edx
sub eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x50]
movzx eax, byte [eax]
push eax
push ecx
call fcn.0048eea0
dec dword [esi + 0x34]
inc ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [esi]
mov edx, dword [esi + 8]
call edx
test eax, eax
je 0x491dff
cmp dword [esi + 0xa4], 0
je 0x491675
call fcn.004908e0
mov dword [esp + 0x14], eax
jmp 0x4916ae
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], ecx
jne 0x49168e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0048f6f0
mov dword [esp + 0x14], eax
jmp 0x4916ae
mov edx, ecx
shl edx, 5
lea eax, [edx + esi + 0xbcb8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
inc ecx
mov dword [esp + 0x14], edx
mov dword [esi + 0x90], eax
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x4c]
and eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x58]
mov edi, dword [esi + 0x90]
shl ecx, 4
add ecx, eax
mov dword [esp + 0x18], eax
lea edx, [esi + ecx*2 + 0x1eb0]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
cmp edi, 0xffffffff
jne 0x491773
mov ebx, 0x800
sub ebx, ecx
shr ebx, 5
add ebx, ecx
mov edi, eax
mov word [edx], bx
cmp eax, 0x1000000
jae 0x49170a
shl eax, 8
mov edi, eax
lea eax, [esi + 0x58]
call fcn.0048ee00
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov dword [esi + 0x58], edi
call edx
sub eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x10]
movzx edx, byte [eax - 1]
mov bl, byte [eax]
shl ecx, 8
add edx, ecx
and edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x94]
shl edx, cl
mov ecx, dword [esi + 0x50]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
mov ecx, dword [esi + 0x2c]
movzx edi, byte [ecx + 0x4b4420]
mov dword [esi + 0x2c], edi
lea edi, [esi + 0x58]
cmp ecx, 7
jae 0x49175e
movzx eax, bl
push eax
push edx
call fcn.0048eea0
jmp 0x491d28
sub eax, dword [esi + 0x38]
movzx ecx, byte [eax]
push ecx
movzx eax, bl
push edx
call fcn.0048ef30
jmp 0x491d28
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x491799
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov ecx, dword [esi + 0x2c]
lea edx, [esi + ecx*2 + 0x1e50]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
cmp edi, 4
jae 0x4919b8
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x4917dd
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov ecx, dword [esi + 0x2c]
lea edx, [esi + ecx*2 + 0x1e68]
movzx ecx, word [edx]
mov eax, ebx
shr eax, 0xb
imul eax, ecx
test edi, edi
jne 0x491882
mov edi, 0x800
sub edi, ecx
shr edi, 5
add edi, ecx
mov ebx, eax
mov word [edx], di
cmp eax, 0x1000000
jae 0x49181f
shl eax, 8
mov ebx, eax
lea eax, [esi + 0x58]
call fcn.0048ee00
mov edx, dword [esi + 0x2c]
shl edx, 4
add edx, dword [esp + 0x18]
movzx eax, word [esi + edx*2 + 0x2030]
lea edx, [esi + edx*2 + 0x2030]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp dword [esp + 0x14], 1
je 0x49185f
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx], ax
jmp 0x491963
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov edx, dword [esi + 0x2c]
movzx eax, byte [edx + 0x4b4444]
mov dword [esi + 0x2c], eax
jmp 0x491963
sub ebx, eax
add dword [esi + 0x60], eax
mov eax, ecx
adc dword [esi + 0x64], 0
shr eax, 5
sub ecx, eax
mov word [edx], cx
cmp ebx, 0x1000000
jae 0x4918a8
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov ecx, dword [esi + 0x2c]
movzx eax, word [esi + ecx*2 + 0x1e80]
lea edx, [esi + ecx*2 + 0x1e80]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp edi, 1
jne 0x4918dd
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x3c]
jmp 0x49195a
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx], ax
cmp ebx, 0x1000000
jae 0x491903
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov edx, dword [esi + 0x2c]
movzx eax, word [esi + edx*2 + 0x1e98]
lea edx, [esi + edx*2 + 0x1e98]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
cmp edi, 2
jne 0x491938
mov ebx, ecx
mov ecx, 0x800
sub ecx, eax
shr ecx, 5
add ecx, eax
mov word [edx], cx
mov eax, dword [esi + 0x40]
jmp 0x491954
sub ebx, ecx
add dword [esi + 0x60], ecx
mov ecx, eax
adc dword [esi + 0x64], 0
shr ecx, 5
sub eax, ecx
mov word [edx], ax
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x44], edx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], ecx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
cmp ebx, 0x1000000
jae 0x491976
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
cmp dword [esp + 0x14], 1
mov dword [esi + 0x58], ebx
je 0x491d28
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
add ecx, 0xfffffffe
push ecx
lea edx, [esi + 0x28b0]
push edx
lea eax, [esi + 0x58]
call fcn.0048f190
mov eax, dword [esi + 0x2c]
dec dword [esi + 0xc4]
movzx ecx, byte [eax + 0x4b4438]
mov dword [esi + 0x2c], ecx
jmp 0x491d28
mov ebp, 0x800
sub ebp, ecx
shr ebp, 5
add ebp, ecx
mov ebx, eax
mov word [edx], bp
cmp eax, 0x1000000
jae 0x4919dd
shl eax, 8
mov ebx, eax
lea eax, [esi + 0x58]
call fcn.0048ee00
mov edx, dword [esi + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x58], ebx
movzx eax, byte [edx + str._a_a_a_a_a_a_a_n_n_n_n_n_b_b_b_b_b_b_b_v_v_v_v_v_t_t_t_t_t_t_t_v_v_v_v_v]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
push ecx
push eax
lea edx, [esi + 0x24b0]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esi + 0x58]
call fcn.0048f190
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
inc dword [esi + 0xc0]
sub edi, 4
mov dword [esi + 0x44], eax
lea eax, [edi + 1]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
cmp edi, 0x80
jae 0x491a45
mov ecx, edi
and ecx, 0x7f
movzx ecx, byte [ecx + esi + 0x2cb0]
jmp 0x491a62
cmp edi, 0x20000
sbb ecx, ecx
and ecx, 0xfffffff6
add ecx, 0x10
mov edx, edi
shr edx, cl
movzx eax, byte [edx + esi + 0x2cb0]
lea ecx, [eax + ecx*2]
mov ebx, dword [esi + 0x58]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
add ecx, 0x40
cmp dword [esp + 0x14], 5
mov dword [esp + 0x18], ecx
jb 0x491a80
mov eax, 3
shl eax, 7
lea ecx, [eax + esi + 0x21b0]
mov dword [esp + 0x24], ecx
mov edi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, eax
shr edx, 6
movzx ebp, word [ecx + edx*2]
lea edx, [ecx + edx*2]
mov ecx, eax
mov dword [esp + 0x28], edx
add eax, eax
mov edx, ebx
shr edx, 0xb
imul edx, ebp
mov dword [esp + 0x18], eax
shr ecx, 5
and ecx, 1
mov eax, ecx
neg eax
and ebx, eax
and eax, edx
sub ebx, eax
add dword [esi + 0x60], eax
lea eax, [ecx - 1]
mov ecx, eax
adc dword [esi + 0x64], 0
and eax, 0x7e1
sub eax, ebp
add eax, 0x1f
and ecx, edx
mov edx, dword [esp + 0x28]
sar eax, 5
add ebx, ecx
add eax, ebp
mov word [edx], ax
cmp ebx, 0x1000000
jae 0x491b01
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
cmp dword [esp + 0x18], 0x1000
jb 0x491a90
mov dword [esi + 0x58], ebx
cmp edi, 4
jb 0x491d28
mov edx, dword [esp + 0x1c]
mov eax, edx
shr eax, 1
dec eax
cmp edi, 0x80
jae 0x491b49
and edx, 1
mov ecx, eax
or edx, 2
shl edx, cl
push edi
push eax
lea ebx, [esi + 0x58]
lea eax, [esi + edx*2 + 0x23b0]
push eax
call fcn.0048f0f0
jmp 0x491d28
mov ecx, 0x20
mov ebp, edi
sub ecx, eax
or ebp, 0xf
shl ebp, cl
mov ecx, ebp
shr ecx, 0x1f
shr ebx, 1
neg ecx
and ecx, ebx
add dword [esi + 0x60], ecx
adc dword [esi + 0x64], 0
add ebp, ebp
cmp ebx, 0x1000000
jae 0x491b7e
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
cmp ebp, 0xf0000000
jne 0x491b57
movzx ecx, word [esi + 0x1e32]
mov edx, ebx
shr edx, 0xb
imul edx, ecx
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, edx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov dword [esp + 0x28], edx
adc dword [esi + 0x64], 0
mov edx, eax
and edx, dword [esp + 0x28]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add ebx, edx
add eax, ecx
mov word [esi + 0x1e32], ax
cmp ebx, 0x1000000
jae 0x491be5
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
lea eax, [ebp + 2]
mov dword [esp + 0x18], eax
movzx eax, word [esi + eax*2 + 0x1e30]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
mov dword [esp + 0x1c], eax
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, ecx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov edx, eax
adc dword [esi + 0x64], 0
and edx, ecx
mov ecx, dword [esp + 0x1c]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
add ebx, edx
mov word [esi + ecx*2 + 0x1e30], ax
cmp ebx, 0x1000000
jae 0x491c53
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov edx, dword [esp + 0x18]
lea eax, [ebp + edx*2]
mov dword [esp + 0x18], eax
movzx eax, word [esi + eax*2 + 0x1e30]
mov ecx, ebx
shr ecx, 0xb
imul ecx, eax
mov dword [esp + 0x1c], eax
mov ebp, edi
and ebp, 1
mov eax, ebp
neg eax
and ebx, eax
and eax, ecx
sub ebx, eax
shr edi, 1
add dword [esi + 0x60], eax
lea eax, [ebp - 1]
mov edx, eax
adc dword [esi + 0x64], 0
and edx, ecx
mov ecx, dword [esp + 0x1c]
and eax, 0x7e1
sub eax, ecx
add eax, 0x1f
sar eax, 5
add eax, ecx
mov ecx, dword [esp + 0x18]
add ebx, edx
mov word [esi + ecx*2 + 0x1e30], ax
cmp ebx, 0x1000000
jae 0x491cc6
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov edx, dword [esp + 0x18]
lea ebp, [ebp + edx*2]
and edi, 1
mov eax, edi
movzx edi, word [esi + ebp*2 + 0x1e30]
mov edx, ebx
shr edx, 0xb
imul edx, edi
mov ecx, eax
neg ecx
and ebx, ecx
and ecx, edx
sub ebx, ecx
add dword [esi + 0x60], ecx
adc dword [esi + 0x64], 0
dec eax
mov ecx, eax
and eax, 0x7e1
sub eax, edi
add eax, 0x1f
and ecx, edx
sar eax, 5
add ebx, ecx
add eax, edi
mov word [esi + ebp*2 + 0x1e30], ax
cmp ebx, 0x1000000
jae 0x491d25
lea eax, [esi + 0x58]
shl ebx, 8
call fcn.0048ee00
mov dword [esi + 0x58], ebx
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], eax
sub dword [esi + 0x34], eax
jne 0x491661
cmp dword [esi + 0xa4], 0
jne 0x491dba
mov edi, 0x40
cmp dword [esi + 0xc0], edi
jb 0x491d84
mov eax, esi
call fcn.00490e00
mov edx, esi
call fcn.00491120
mov ecx, dword [esi + 0x9c]
lea edx, [esi + 0x24b0]
push edx
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x34b0]
lea eax, [esi + 0x760]
push edx
push ecx
call fcn.0048f420
cmp dword [esi + 0xc4], 0
jg 0x491dba
mov ecx, dword [esi + 0x9c]
lea edx, [esi + 0x28b0]
push edx
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x78b4]
lea eax, [esi + 0x760]
mov dword [esi + 0xc4], edi
push edx
push ecx
call fcn.0048f420
mov ecx, dword [esi]
mov edx, dword [esi + 8]
call edx
test eax, eax
je 0x491dff
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
cmp dword [esp + 0x30], 0
je 0x491e28
add eax, 0x92c
cmp eax, dword [esp + 0x34]
jae 0x491dff
mov eax, dword [esi + 0x80]
sub eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x68]
add eax, dword [esi + 0x70]
lea edx, [eax + ecx + 0x4000]
cmp edx, dword [esp + 0x30]
jb 0x491661
mov eax, dword [esp + 0x10]
mov ecx, eax
sub ecx, dword [esp + 0x20]
push eax
add dword [esi + 0xb8], ecx
mov edi, esi
adc dword [esi + 0xbc], 0
call fcn.00490db0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 8
cmp eax, 0x20000
jb 0x491661
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
mov ecx, esi
add dword [esi + 0xb8], eax
adc dword [esi + 0xbc], 0
call fcn.00490d50
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret 8