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

Disassembly:
sub esp, 0x120
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
xor cl, cl
mov dword [esp + 0x24], eax
xor dl, dl
mov eax, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x2c], eax
xor al, al
push ebp
mov ebp, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x138]
mov byte [esp + 0xf], al
mov byte [esp + 0xe], al
xor eax, eax
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], esi
push edi
mov edi, dword [esp + 0x140]
lea eax, [ecx + esi]
mov esi, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], ebp
lea eax, [esi - 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x1b], dl
mov dword [esp + 0x40], esi
test ebx, ebx
jne 0x49d85e
cmp dword [esp + 0x34], ebx
jne 0x49d85e
test eax, eax
jne 0x49d85e
cmp edi, 0xfffffc19
jne 0x49d85e
cmp ecx, edi
jne 0x49d85e
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.004904d0
add esp, 0x1c
jmp 0x49e622
mov edx, dword [esp + 0x148]
test edx, 0xe20f5a6f
je 0x49d877
mov eax, 0xfffffffd
jmp 0x49e622
test ebx, ebx
je 0x49e61d
test eax, eax
je 0x49e61d
mov eax, dword [esp + 0x150]
test ebp, ebp
jne 0x49d89a
test eax, eax
jg 0x49e61d
test eax, eax
jns 0x49d8a8
mov eax, 0xfffffff1
jmp 0x49e622
test edi, edi
jns 0x49d8b6
mov eax, 0xffffffe0
jmp 0x49e622
test ecx, ecx
js 0x49e616
cmp ecx, edi
jg 0x49e616
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x49d8e8
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
jmp 0x49e622
test byte [ebx + 0xc], 1
jne 0x49d8f8
mov eax, 0xffffffe4
jmp 0x49e622
mov ecx, dword [ebx + 8]
mov eax, 0
and ecx, 0x800
mov dword [esp + 0x3c], ecx
setne al
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc0], eax
test edx, 0x8000000
je 0x49d927
mov eax, 2
jmp 0x49d92f
mov eax, edx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xfc], eax
test ecx, ecx
je 0x49d9ae
test edx, 0x2000
jne 0x49d9ae
lea eax, [esp + 0x20]
push eax
push edi
push dword [esp + 0x2c]
call fcn.0049e9b0
add esp, 0xc
test eax, eax
je 0x49d98e
cmp dword [esp + 0x150], 2
jl 0x49d96c
mov ecx, dword [esp + 0x20]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
cmp eax, 5
jg 0x49d984
cmp dword [esp + 0xfc], 1
mov eax, 0xffffffe7
jg 0x49e622
mov eax, 0xfffffff6
jmp 0x49e622
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x49d9ae
cmp eax, edi
jge 0x49d9ae
mov eax, esi
mov al, byte [eax]
and al, 0xc0
cmp al, 0x80
jne 0x49d9ae
mov eax, 0xfffffff5
jmp 0x49e622
movzx eax, word [ebx + 0x22]
mov ecx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0xa4], eax
mov edx, ecx
movzx eax, word [ebx + 0x26]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x20], ebx
test eax, eax
je 0x49da4b
mov ebx, dword [eax]
test bl, 1
je 0x49da12
mov ebx, dword [eax + 4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [eax]
test bl, 2
je 0x49da1e
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
test bl, 0x10
je 0x49da2a
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
test bl, 4
je 0x49da3d
mov eax, dword [eax + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x34]
test bl, 8
je 0x49da47
mov ebx, dword [eax + 0x10]
jmp 0x49da4b
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0xc]
test esi, 0x2000
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x40]
je 0x49da72
mov eax, dword [eax + 0x10]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
test dword [esp + 0x28], 0x4000
je 0x49da88
mov eax, dword [eax + 0x14]
cmp eax, edx
cmovb edx, eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x1c]
test ebx, ebx
mov ecx, 0x711df8
mov dword [esp + 0xa0], 0
cmovne ecx, ebx
mov dword [esp + 0xd8], 0
mov dword [esp + 0x124], 0
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
or eax, dword [esp + 0x148]
mov dword [esp + 0x40], eax
movzx eax, word [edx + 0x26]
imul ebp, eax
movzx eax, word [edx + 0x22]
mov dword [esp + 0x120], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0xac], ecx
add ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x108], eax
add ebp, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xe4], ebp
mov ebp, edx
mov dword [esp + 0xe8], ebp
lea eax, [edx + edi]
mov edi, dword [esp + 0x58]
mov ebx, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x148]
mov eax, edi
shr eax, 5
and eax, 1
mov dword [esp + 0xec], ebx
mov dword [esp + 0xcc], eax
mov eax, edi
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xc8], eax
mov eax, edi
shr eax, 0x19
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, edx
shr eax, 7
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, edx
shr eax, 8
and eax, 1
mov dword [esp + 0xbc], eax
mov eax, edx
shr eax, 0xa
and eax, 1
mov dword [esp + 0xd0], eax
mov eax, edx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x28]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe0], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xb0], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0xb4], eax
mov eax, edx
and eax, 0x1800000
je 0x49dc50
cmp eax, 0x800000
je 0x49dc43
cmp eax, 0x1000000
jne 0x49dca1
mov dword [esp + 0xdc], 0
test edx, 0x700000
mov eax, edx
cmove eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x49dc93
je 0x49dc70
test eax, eax
je 0x49dc20
cmp eax, 0x100000
je 0x49dc69
cmp eax, 0x200000
jne 0x49dca1
mov eax, 0xa
xor ecx, ecx
mov byte [esp + 0xa8], al
mov dword [esp + 0x8c], ecx
mov ecx, 1
mov dword [esp + 0x90], ecx
jmp 0x49dcbe
mov dword [esp + 0xdc], 1
jmp 0x49dbed
test edi, 0x1800000
je 0x49dbe2
mov eax, edi
shr eax, 0x17
and eax, 1
mov dword [esp + 0xdc], eax
jmp 0x49dbed
mov eax, 0xd
jmp 0x49dc25
mov ecx, 2
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ecx
mov word [esp + 0xa8], 0xa0d
jmp 0x49dcbe
cmp eax, 0x400000
je 0x49dcb2
cmp eax, 0x500000
je 0x49dcab
mov eax, 0xffffffe9
jmp 0x49e622
mov ecx, 2
jmp 0x49dcb7
mov ecx, 1
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0xfc], 0
je 0x49dcdc
test dword [esp + 0x28], 0x200
je 0x49dcdc
mov eax, 0xfffffff3
jmp 0x49e622
mov eax, 0x55555556
imul dword [esp + 0x150]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax + eax*2]
mov eax, 0x55555556
lea ecx, [edi + edi]
mov dword [esp + 0x44], edi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x49dd72
mov ecx, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49dd72
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x44], eax
shl eax, 2
push eax
call dword [0x7bca64]
mov edi, eax
add esp, 4
mov dword [esp + 0x80], edi
test edi, edi
jne 0x49dd56
lea eax, [edi - 6]
jmp 0x49e622
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x60], 1
mov dword [esp + 0x48], edi
jmp 0x49dd83
mov eax, dword [esp + 0x30]
mov edi, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov dword [esp + 0x104], 0
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x48]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x88], eax
test ecx, ecx
je 0x49de18
mov eax, dword [esp + 0x44]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x1c]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x48]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49ddf6
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49dde2
mov edi, dword [esp + 0x80]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x80]
mov dword [eax], 0xffffffff
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
test byte [esp + 0x40], 0x10
mov edx, dword [esp + 0x1c]
jne 0x49de7e
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49de56
mov ch, byte [edx + 0x18]
mov dword [esp + 0x50], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x1a], cl
test al, 0x20
je 0x49de7e
movzx eax, ch
mov ecx, dword [esp + 0xb0]
mov al, byte [eax + ecx]
mov byte [esp + 0x13], al
jmp 0x49de85
test dword [esp + 0x28], 0x100
jne 0x49de7e
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x49de7e
test byte [eax + 4], 1
mov ecx, dword [esp + 0xb0]
je 0x49de85
add eax, 8
mov dword [esp + 0x64], eax
jmp 0x49de85
mov ecx, dword [esp + 0xb0]
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49deaf
mov dh, byte [edx + 0x1a]
mov dword [esp + 0x68], 1
mov dl, dh
mov byte [esp + 0x12], dh
mov byte [esp + 0x1b], dl
test al, al
jns 0x49deaf
movzx eax, dh
mov al, byte [eax + ecx]
mov byte [esp + 0x12], al
mov edx, dword [esp + 0x14]
nop dword [eax]
nop word [eax + eax]
test dword [esp + 0x58], 0x40000
mov edi, edx
je 0x49dfef
cmp dword [esp + 0x3c], 0
mov edi, esi
je 0x49df7a
cmp esi, ebx
jae 0x49dfef
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x49df27
cmp edi, ebx
jae 0x49df5e
push dword [esp + 0x2c]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.0049e670
add esp, 0x14
test eax, eax
jne 0x49dfe8
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x49df5a
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49df5a
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x49df5a
cmp ecx, 1
je 0x49dfe8
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x49dfe8
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, ecx
jae 0x49df70
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49df70
inc edi
cmp edi, ecx
jb 0x49df63
cmp edi, ebx
jb 0x49def0
jmp 0x49dfe8
cmp esi, ebx
jae 0x49dfef
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x49dfb8
cmp edi, ebx
jae 0x49dfe3
push dword [esp + 0x2c]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.0049e670
add esp, 0x14
test eax, eax
jne 0x49dfe8
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x49dfe3
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49dfe3
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x49dfe3
cmp ecx, 1
je 0x49dfe8
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x49dfe8
inc edi
cmp edi, ebx
jb 0x49df85
mov ebp, dword [esp + 0xe8]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x49e1e7
cmp dword [esp + 0x50], 0
je 0x49e052
cmp esi, edi
jae 0x49e1e7
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x13]
cmp cl, dl
je 0x49e040
mov al, byte [esi]
cmp al, cl
je 0x49e1e7
cmp al, dl
je 0x49e1e7
inc esi
cmp esi, edi
jb 0x49e023
jmp 0x49e1e7
cmp byte [esi], cl
je 0x49e1e7
inc esi
cmp esi, edi
jb 0x49e040
jmp 0x49e1e7
test dword [esp + 0x28], 0x100
je 0x49e199
mov eax, dword [esp + 0x38]
add eax, ebp
cmp esi, eax
jbe 0x49e1e7
cmp esi, edi
jae 0x49e176
cmp dword [esp + 0x3c], 0
je 0x49e106
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x49e0b8
cmp esi, ebp
jbe 0x49e0ee
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.0049e7d0
add esp, 0x14
test eax, eax
jne 0x49e176
mov ebp, dword [esp + 0xe8]
jmp 0x49e0ee
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x49e0ee
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x49e0ee
cmp edx, 1
je 0x49e176
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x49e176
inc esi
cmp esi, edi
jae 0x49e176
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49e081
inc esi
cmp esi, edi
jb 0x49e0f7
jmp 0x49e176
mov eax, dword [esp + 0x8c]
nop dword [eax]
test eax, eax
je 0x49e13c
cmp esi, ebp
jbe 0x49e171
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.0049e7d0
add esp, 0x14
test eax, eax
jne 0x49e176
mov ebp, dword [esp + 0xe8]
jmp 0x49e16a
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x49e16a
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x49e16a
cmp edx, 1
je 0x49e176
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x49e176
mov eax, dword [esp + 0x8c]
inc esi
cmp esi, edi
jb 0x49e110
cmp byte [esi - 1], 0xd
jne 0x49e1e7
mov eax, dword [esp + 0x8c]
cmp eax, 1
je 0x49e18d
cmp eax, 2
jne 0x49e1e7
cmp esi, edi
jae 0x49e1e7
cmp byte [esi], 0xa
jne 0x49e1e7
inc esi
jmp 0x49e1e7
mov ebp, dword [esp + 0x64]
test ebp, ebp
je 0x49e1e7
cmp esi, edi
jae 0x49e1e7
mov ebx, dword [esp + 0x3c]
nop dword [eax]
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebp], al
jne 0x49e1e3
inc esi
test ebx, ebx
je 0x49e1df
cmp esi, edi
jae 0x49e1e3
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49e1df
inc esi
cmp esi, edi
jb 0x49e1d0
jmp 0x49e1e3
cmp esi, edi
jb 0x49e1b0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x49e290
cmp dword [esp + 0xfc], 0
jne 0x49e290
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x49e225
test byte [ecx + 4], 2
je 0x49e225
mov eax, edx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49e321.996
cmp dword [esp + 0x68], 0
je 0x49e290
mov eax, edx
sub eax, esi
cmp eax, 0x3e8
jge 0x49e290
mov eax, dword [esp + 0x50]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x54]
jbe 0x49e290
cmp ecx, edx
jae case.0x49e321.996
mov ah, byte [esp + 0x1b]
cmp ah, byte [esp + 0x12]
je 0x49e270
mov al, byte [ecx]
mov ebx, ecx
inc ecx
mov dword [esp + 0x54], ebx
cmp al, ah
je 0x49e288
cmp al, byte [esp + 0x12]
je 0x49e288
cmp ecx, edx
jb 0x49e252
xor ebp, ebp
jmp 0x49e479
mov al, byte [ecx]
mov ebx, ecx
mov dword [esp + 0x54], ecx
inc ecx
cmp al, ah
je 0x49e288
cmp ecx, edx
jb 0x49e270
xor ebp, ebp
jmp 0x49e479
cmp ebx, edx
jae case.0x49e321.996
mov ebx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0xf8], esi
push eax
push 2
push esi
push dword [esp + 0xf8]
mov dword [esp + 0x110], esi
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0xb8], 0
call fcn.004904d0
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xd8], 0
je 0x49e308
cmp dword [esp + 0x5c], 0
jne 0x49e308
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], esi
test ebp, ebp
jg case.default.0x49e321
je case.0x49e321.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49e321
jmp dword [eax*4 + 0x49e63c]
mov eax, dword [esp + 0x9c]
mov edi, esi
mov dword [esp + 0xa0], eax
jmp 0x49e36f
mov edi, dword [esp + 0xf0]
cmp edi, esi
ja 0x49e36f
cmp dword [esp + 0x3c], 0
lea edi, [esi + 1]
mov dword [esp + 0xa0], 0
je 0x49e36f
mov edx, dword [esp + 0x14]
cmp edi, edx
jae 0x49e36f
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49e36f
inc edi
cmp edi, edx
jb 0x49e362
mov eax, dword [esp + 0x8c]
xor ebp, ebp
test dword [esp + 0x58], 0x40000
mov ebx, dword [esp + 0xec]
je 0x49e3c2
test eax, eax
je 0x49e42d
cmp esi, ebx
jae 0x49e3c2
push dword [esp + 0x2c]
lea ecx, [esp + 0x94]
push ecx
push ebx
push eax
push esi
call fcn.0049e670
add esp, 0x14
test eax, eax
jne 0x49e479
mov ebx, dword [esp + 0xec]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
test byte [esp + 0x40], 0x10
mov esi, edi
jne 0x49e479
mov edx, dword [esp + 0x14]
cmp edi, edx
ja 0x49e479
cmp edi, dword [esp + 0x6c]
jbe 0x49e416
cmp byte [edi - 1], 0xd
jne 0x49e416
cmp edi, edx
jae 0x49e416
cmp byte [edi], 0xa
jne 0x49e416
mov ebp, dword [esp + 0x1c]
test dword [ebp + 0xc], 0x800
jne 0x49e416
cmp eax, 1
je 0x49e413
cmp eax, 2
je 0x49e413
cmp ecx, 2
jne 0x49e416
lea esi, [edi + 1]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x120], 0
jmp 0x49dec0
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49e458
mov al, byte [esi]
cmp al, byte [esp + 0xa8]
jne 0x49e458
cmp ecx, 1
je 0x49e479
mov al, byte [esi + 1]
cmp al, byte [esp + 0xa9]
je 0x49e479
mov eax, dword [esp + 0x8c]
jmp 0x49e3c9
cmp ebp, 1
je 0x49e507
cmp ebp, 0xfffffc19
je 0x49e507
cmp dword [esp + 0x60], 0
je 0x49e490
push dword [esp + 0x80]
call dword [0x7bca68]
add esp, 4
test ebp, ebp
je 0x49e4a0
cmp ebp, 0xfffffff4
je 0x49e4a0
mov eax, ebp
jmp 0x49e622
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x49e4de
mov edx, dword [esp + 0x150]
cmp edx, 1
jle 0x49e4d7
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
sub eax, esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [ecx + 4], eax
cmp edx, 2
jle 0x49e4d7
sub ebx, esi
mov dword [ecx + 8], ebx
mov eax, 0xfffffff4
jmp 0x49e4e1
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x49e622
test byte [ecx], 0x20
je 0x49e622
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [edx], ecx
jmp 0x49e622
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x20]
je 0x49e558
mov esi, dword [esp + 0x80]
cmp edi, 4
jl 0x49e53a
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x38]
add eax, 8
push eax
call fcn.0052ae60
add esp, 0xc
cmp dword [esp + 0x100], edi
jle 0x49e54e
or dword [esp + 0x104], 0x10000
push esi
call dword [0x7bca68]
add esp, 4
test dword [esp + 0x104], 0x10000
mov ecx, dword [esp + 0x100]
je 0x49e574
cmp ecx, edi
jl 0x49e574
xor esi, esi
jmp 0x49e57d
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
movzx edi, word [ebx + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
cmp eax, edi
jg 0x49e5ca
test edx, edx
je 0x49e5ca
lea eax, [edi*2 + 2]
cmp eax, dword [esp + 0x150]
lea edi, [edx + ecx*4]
cmovg eax, dword [esp + 0x150]
xor ebx, ebx
lea eax, [edx + eax*4]
mov ecx, eax
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, eax
cmova ecx, ebx
test ecx, ecx
je 0x49e5ca
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x150], 2
jge 0x49e5d8
xor esi, esi
jmp 0x49e5f9
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0xe8]
mov dword [edx], eax
mov eax, dword [esp + 0xf4]
sub eax, dword [esp + 0xe8]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x49e612
test byte [eax], 0x20
je 0x49e612
mov edx, dword [eax + 0x18]
mov ecx, dword [esp + 0x120]
mov dword [edx], ecx
mov eax, esi
jmp 0x49e622
mov eax, 0xffffffe8
jmp 0x49e622
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x120
ret