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

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x260]
xor eax, eax
mov dword [esp + 0x44], eax
xor ecx, ecx
mov eax, dword [esp + 0x258]
add eax, edx
mov dword [esp + 0x18], ecx
mov esi, eax
mov dword [esp + 0x114], eax
xor ebp, ebp
mov dword [esp + 0x48], ecx
xor ebx, ebx
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x250]
xor cl, cl
lea eax, [esi - 1]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], eax
xor ch, ch
mov byte [esp + 0x12], cl
lea eax, [esp + 0x118]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x258]
mov byte [esp + 0x10], ch
mov byte [esp + 0x13], cl
mov byte [esp + 0x11], ch
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov edi, dword [esp + 0x26c]
test ebp, ebp
jne 0x49bfcd
cmp dword [esp + 0x254], ebx
jne 0x49bfcd
test eax, eax
jne 0x49bfcd
cmp dword [esp + 0x25c], 0xfffffc19
jne 0x49bfcd
cmp edx, 0xfffffc19
jne 0x49bfcd
pop edi
pop esi
pop ebp
mov eax, 0xfffffecc
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x264]
test ecx, 0xe20f5a6f
je 0x49bfec
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x23c
ret
test ebp, ebp
je 0x49ce8e
test eax, eax
je 0x49ce8e
mov ebx, dword [esp + 0x268]
test ebx, ebx
jne 0x49c00f
test edi, edi
jg 0x49ce8e
test edi, edi
jns 0x49c023
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x25c]
test eax, eax
jns 0x49c03e
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x23c
ret
test edx, edx
js 0x49ce7e
cmp edx, eax
jg 0x49ce7e
mov eax, dword [ebp]
cmp eax, 0x50435245
je 0x49c072
sub eax, 0x45524350
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x19
pop ebp
add eax, 0xffffffe3
pop ebx
add esp, 0x23c
ret
test byte [ebp + 0xc], 1
jne 0x49c088
pop edi
pop esi
pop ebp
mov eax, 0xffffffe4
pop ebx
add esp, 0x23c
ret
mov edx, dword [ebp + 8]
mov eax, 0
and edx, 0x800
mov dword [esp + 0x34], edx
setne al
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa4], eax
test ecx, 0x8000000
je 0x49c0b7
mov eax, 2
jmp 0x49c0bf
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xe0], eax
test edx, edx
je 0x49c163
test ecx, 0x2000
jne 0x49c163
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x260]
push dword [esp + 0x260]
call fcn.00508740
add esp, 0xc
test eax, eax
je 0x49c12f
cmp edi, 2
jl 0x49c107
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp eax, 5
jg 0x49c11f
cmp dword [esp + 0xe0], 1
mov eax, 0xffffffe7
jg 0x49ce93
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x260]
test eax, eax
jle 0x49c163
cmp eax, dword [esp + 0x25c]
jge 0x49c163
mov ecx, dword [esp + 0x258]
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x80
jne 0x49c163
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x23c
ret
movzx eax, word [ebp + 0x22]
mov edx, 0x989680
movzx ebx, word [ebp + 0x24]
add eax, ebp
mov dword [esp + 0x88], eax
mov edi, edx
movzx eax, word [ebp + 0x26]
mov ebp, dword [ebp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x254]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x100], 0
test eax, eax
je 0x49c1f8
mov ecx, dword [eax]
test cl, 1
je 0x49c1c2
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
test cl, 2
je 0x49c1ce
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
test cl, 0x10
je 0x49c1da
mov edi, dword [eax + 0x14]
mov dword [esp + 0x60], edi
test cl, 4
je 0x49c1f0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x254]
test cl, 8
je 0x49c1f8
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x250]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x49c21c
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x49c215
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x250]
test ecx, 0x4000
je 0x49c22f
mov eax, dword [eax + 0x14]
cmp eax, edi
jae 0x49c22f
mov dword [esp + 0x60], eax
test ebp, ebp
jne 0x49c238
mov ebp, 0x55a600
mov edi, dword [esp + 0x250]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x84], 0
mov dword [esp + 0xbc], 0
mov ecx, dword [edi + 8]
mov eax, ecx
or eax, dword [esp + 0x264]
shr eax, 4
and eax, 1
mov edx, dword [edi + 0xc]
mov dword [esp + 0x50], eax
mov eax, edx
shr eax, 8
and eax, 1
mov dword [esp + 0x108], 0
mov dword [esp + 0x40], eax
mov eax, ecx
shr eax, 0x12
and eax, 1
mov dword [esp + 0x104], 0
mov dword [esp + 0x4c], eax
movzx eax, word [edi + 0x26]
imul ebx, eax
movzx eax, word [edi + 0x22]
mov dword [esp + 0xfc], 0
add ebx, eax
mov eax, dword [esp + 0x260]
mov dword [esp + 0xec], eax
add ebx, edi
mov eax, dword [esp + 0x25c]
mov dword [esp + 0xc8], ebx
mov ebx, dword [esp + 0x258]
add eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xcc], ebx
mov ebx, eax
mov eax, ecx
mov dword [esp + 0xd0], ebx
shr eax, 5
and eax, 1
mov dword [esp + 0xb0], eax
mov eax, ecx
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xac], eax
mov eax, ecx
shr eax, 0x19
and eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x264]
shr eax, 7
and eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x264]
shr eax, 8
and eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x264]
shr eax, 0xa
and eax, 1
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x264]
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, edx
shr eax, 0xc
and eax, 1
mov dword [esp + 0xc4], eax
lea eax, [ebp + 0x100]
mov dword [esp + 0x94], eax
lea eax, [ebp + 0x340]
mov ebp, dword [esp + 0x264]
mov dword [esp + 0x98], eax
mov eax, ebp
and eax, 0x1800000
je 0x49c41a
cmp eax, 0x800000
je 0x49c40d
cmp eax, 0x1000000
jne 0x49c49a
mov dword [esp + 0xc0], 0
test ebp, 0x700000
je 0x49c3d3
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x49c48a
je 0x49c46d
test ecx, ecx
je 0x49c450
cmp ecx, 0x100000
je 0x49c433
cmp ecx, 0x200000
jne 0x49c49a
mov dword [esp + 0x70], 0
jmp 0x49c456
mov dword [esp + 0xc0], 1
jmp 0x49c3c9
test ecx, 0x1800000
je 0x49c3be
mov eax, ecx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xc0], eax
jmp 0x49c3c9
xor ecx, ecx
mov eax, 0xd
mov dword [esp + 0x70], ecx
mov ecx, 1
mov dword [esp + 0x74], ecx
mov byte [esp + 0x8c], al
jmp 0x49c4ba
xor ecx, ecx
mov dword [esp + 0x70], ecx
mov eax, 0xa
mov ecx, 1
mov dword [esp + 0x74], ecx
mov byte [esp + 0x8c], al
jmp 0x49c4ba
mov ecx, 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov word [esp + 0x8c], 0xa0d
jmp 0x49c4ba
cmp ecx, 0x400000
je 0x49c4b1
cmp ecx, 0x500000
je 0x49c4aa
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x23c
ret
mov ecx, 2
jmp 0x49c4b6
mov ecx, 1
mov dword [esp + 0x70], ecx
cmp dword [esp + 0xe0], 0
je 0x49c4dc
test edx, 0x200
je 0x49c4dc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
add esp, 0x23c
ret
mov eax, 0xaaaaaaab
mul dword [esp + 0x26c]
mov eax, 0x55555556
shr edx, 1
lea ebp, [edx + edx*2]
lea ecx, [ebp*2]
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
movzx eax, word [edi + 0x20]
test ax, ax
je 0x49c565
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49c565
inc ecx
lea ebp, [ecx + ecx*2]
lea eax, [ebp*4]
push eax
call dword [0xd8e758]
mov edi, eax
add esp, 4
mov dword [esp + 0x64], edi
test edi, edi
jne 0x49c550
lea eax, [edi - 6]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x28], edi
jmp 0x49c576
mov eax, dword [esp + 0x268]
mov edi, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], eax
lea ecx, [ebp*2]
mov dword [esp + 0x68], ebp
mov eax, 0x55555556
mov dword [esp + 0xe8], 0
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49c617
lea ecx, [eax + ebp*4]
mov eax, dword [esp + 0x250]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x28]
add eax, 8
cmp edx, eax
jae 0x49c5c8
mov edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49c5e8
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49c5d0
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x26c]
test eax, eax
jle 0x49c604
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
cmp eax, 1
jle 0x49c617
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x250]
jne 0x49c675
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49c659
mov ecx, 1
mov dword [esp + 0x18], ecx
mov ch, byte [edx + 0x18]
mov byte [esp + 0x10], ch
mov cl, ch
mov byte [esp + 0x12], cl
test al, 0x20
je 0x49c675
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x10], ch
jmp 0x49c675
cmp dword [esp + 0x40], 0
jne 0x49c675
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49c675
test byte [eax + 4], 1
je 0x49c675
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49c6a6
mov ch, byte [edx + 0x1a]
mov dword [esp + 0x48], 1
mov cl, ch
mov byte [esp + 0x11], ch
mov byte [esp + 0x13], cl
test al, al
jns 0x49c6a6
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x11], ch
mov ebp, dword [esp + 0x14]
lea ebx, [ebx]
cmp dword [esp + 0x4c], 0
mov edi, ebp
je 0x49c7e3
cmp dword [esp + 0x34], 0
mov edi, esi
je 0x49c75f
cmp esi, ebx
jae 0x49c7e3
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49c710
cmp edi, ebx
jae 0x49c704
push dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.005083b0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49c704
mov eax, 1
jmp 0x49c706
xor eax, eax
test eax, eax
jne 0x49c7dc
jmp 0x49c740
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49c740
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49c740
cmp ecx, 1
je 0x49c7dc
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49c7dc
inc edi
cmp edi, ebp
jae 0x49c752
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49c752
inc edi
cmp edi, ebp
jb 0x49c745
cmp edi, ebx
jb 0x49c6d2
jmp 0x49c7dc
cmp esi, ebx
jae 0x49c7e3
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
nop
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49c7ab
cmp edi, ebx
jae 0x49c7a3
push ebp
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.005083b0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
mov esi, dword [esp + 0x74]
test eax, eax
je 0x49c7a3
mov eax, 1
jmp 0x49c7a5
xor eax, eax
test eax, eax
jne 0x49c7d4
jmp 0x49c7cf
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x49c7cf
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49c7cf
cmp esi, 1
je 0x49c7d4
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49c7d4
inc edi
cmp edi, ebx
jb 0x49c770
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x250]
mov eax, dword [edx + 8]
or eax, dword [esp + 0x264]
mov ebx, dword [esp + 0x18]
test eax, 0x4000000
jne 0x49c9d0
test ebx, ebx
je 0x49c842
cmp esi, edi
jae 0x49c9d0
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x10]
cmp cl, dl
je 0x49c830
mov al, byte [esi]
cmp al, cl
je 0x49c9d0
cmp al, dl
je 0x49c9d0
inc esi
cmp esi, edi
jb 0x49c814
jmp 0x49c9d0
cmp byte [esi], cl
je 0x49c9d0
inc esi
cmp esi, edi
jb 0x49c830
jmp 0x49c9d0
cmp dword [esp + 0x40], 0
je 0x49c99b
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xcc]
add eax, ecx
cmp esi, eax
jbe 0x49c9d0
cmp esi, edi
jae 0x49c97b
cmp dword [esp + 0x34], 0
je 0x49c908
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49c8af
cmp esi, ecx
jbe 0x49c8a3
push dword [esp + 0x1c]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.00508540
add esp, 0x14
test eax, eax
je 0x49c8a3
mov eax, 1
jmp 0x49c8a5
xor eax, eax
test eax, eax
jne 0x49c97b
jmp 0x49c8e2
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49c8e9
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49c8e2
cmp edx, 1
je 0x49c97b
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49c97b
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jae 0x49c97b
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49c878
inc esi
cmp esi, edi
jb 0x49c8f2
jmp 0x49c97b
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49c940
cmp esi, ecx
jbe 0x49c938
push ebp
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.00508540
add esp, 0x14
test eax, eax
je 0x49c938
mov eax, 1
jmp 0x49c93a
xor eax, eax
test eax, eax
jne 0x49c977
jmp 0x49c96b
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49c972
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49c96b
cmp edx, 1
je 0x49c977
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49c977
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jb 0x49c910
mov ebp, dword [esp + 0x14]
cmp byte [esi - 1], 0xd
jne 0x49c9d0
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x49c98f
cmp eax, 2
jne 0x49c9d0
cmp esi, edi
jae 0x49c9d0
cmp byte [esi], 0xa
jne 0x49c9d0
inc esi
jmp 0x49c9d0
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x49c9cc
cmp esi, edi
jae 0x49c9cc
jmp 0x49c9b0
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x49c9cc
inc esi
cmp esi, edi
jb 0x49c9b0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x250]
mov eax, dword [edi + 8]
or eax, dword [esp + 0x264]
test eax, 0x4000000
jne 0x49ca7c
cmp dword [esp + 0xe0], 0
jne 0x49ca7c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49ca11
test byte [ecx + 4], 2
je 0x49ca11
mov eax, ebp
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49cb0a.996
cmp dword [esp + 0x48], 0
je 0x49ca7c
mov eax, ebp
sub eax, esi
cmp eax, 0x3e8
jge 0x49ca7c
lea ecx, [ebx + esi]
cmp ecx, dword [esp + 0x30]
jbe 0x49ca7c
cmp ecx, ebp
jae case.0x49cb0a.996
mov bl, byte [esp + 0x13]
mov ah, byte [esp + 0x11]
cmp bl, ah
je 0x49ca60
lea esp, [esp]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x30], edx
cmp al, bl
je 0x49ca78
cmp al, ah
je 0x49ca78
cmp ecx, ebp
jb 0x49ca40
xor ebp, ebp
jmp 0x49cc6b
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x30], ecx
inc ecx
cmp al, bl
je 0x49ca78
cmp ecx, ebp
jb 0x49ca60
xor ebp, ebp
jmp 0x49cc6b
cmp edx, ebp
jae case.0x49cb0a.996
push 0
push 0
lea eax, [esp + 0x60]
mov dword [esp + 0xdc], esi
push eax
push 2
push esi
push dword [esp + 0xdc]
mov dword [esp + 0xf4], esi
push esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x9c], 0
call fcn.0049d200
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
je 0x49caf1
cmp dword [esp + 0x38], 0
jne 0x49caf1
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49cc56
je case.0x49cb0a.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49cb0a
jmp dword [eax*4 + 0x49cea0]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49cb5d
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49cb5d
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49cb5d
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49cb5d
jmp 0x49cb50
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49cb5d
inc edi
cmp edi, ecx
jb 0x49cb50
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49cbae
test edx, edx
je 0x49cc25
cmp esi, ebx
jae 0x49cba0
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.005083b0
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49cba0
lea eax, [ebp + 1]
jmp 0x49cba2
xor eax, eax
test eax, eax
jne 0x49cc6b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49cc6b
cmp edi, dword [esp + 0x14]
ja 0x49cc6b
mov ebp, dword [esp + 0x14]
cmp edi, dword [esp + 0x114]
jbe 0x49cc0e
cmp byte [edi - 1], 0xd
jne 0x49cc0e
cmp edi, ebp
jae 0x49cc0e
cmp byte [edi], 0xa
jne 0x49cc0e
mov eax, dword [esp + 0x250]
test dword [eax + 0xc], 0x800
jne 0x49cc0e
cmp edx, 1
je 0x49cc07
cmp edx, 2
je 0x49cc07
cmp ecx, 2
jne 0x49cc0e
lea esi, [edi + 1]
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x250]
mov dword [esp + 0x104], 0
jmp 0x49c6b0
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49cbb2
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49cbb2
cmp ecx, 1
je 0x49cc6b
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49cc6b
jmp 0x49cbb2
cmp ebp, 1
je 0x49cd4e
cmp ebp, 0xfffffc19
je 0x49cd4e
cmp dword [esp + 0x3c], 0
je 0x49cc7f
push dword [esp + 0x64]
call dword [0xd8e75c]
add esp, 4
test ebp, ebp
je 0x49ccb1
cmp ebp, 0xfffffff4
je 0x49ccb1
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49cca4
push esi
mov esi, dword [esi + 4]
call dword [0xd8e764]
add esp, 4
test esi, esi
jne 0x49cc93
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49cd01
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49ccfa
mov eax, dword [esp + 0x268]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x258]
sub ebx, edx
mov dword [eax], ebx
mov ebx, dword [esp + 0x25c]
mov dword [eax + 4], ebx
cmp ecx, 2
jle 0x49ccfa
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49cd04
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49cd20
test byte [ecx], 0x20
je 0x49cd20
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x108]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49cd41
jmp 0x49cd30
push esi
mov esi, dword [esi + 4]
call dword [0xd8e764]
add esp, 4
test esi, esi
jne 0x49cd30
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x24]
je 0x49cd9f
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49cd81
lea eax, [ebx*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x270]
add eax, 8
push eax
call fcn.004abb90
add esp, 0xc
cmp dword [esp + 0xe4], ebx
jle 0x49cd95
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xd8e75c]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49cdbb
cmp esi, ebx
jl 0x49cdbb
xor ebx, ebx
jmp 0x49cdc4
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
movzx ecx, word [edi + 0x1e]
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x268]
sar eax, 1
cmp eax, ecx
jg 0x49ce08
test edx, edx
je 0x49ce08
lea eax, [ecx*2 + 2]
mov ecx, dword [esp + 0x26c]
cmp eax, ecx
jle 0x49cdf2
mov eax, ecx
lea ecx, [edx + eax*4]
lea edi, [edx + esi*4]
cmp edi, ecx
jae 0x49ce08
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x26c], 2
jge 0x49ce16
xor ebx, ebx
jmp 0x49ce37
mov eax, dword [esp + 0xd4]
sub eax, dword [esp + 0xcc]
mov dword [edx], eax
mov eax, dword [esp + 0xd8]
sub eax, dword [esp + 0xcc]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49ce53
test byte [ecx], 0x20
je 0x49ce53
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x104]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49ce71
mov edi, edi
push esi
mov esi, dword [esi + 4]
call dword [0xd8e764]
add esp, 4
test esi, esi
jne 0x49ce60
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x23c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe8
pop ebx
add esp, 0x23c
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret