Function at 0x49df90
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 0x49e05d
cmp dword [esp + 0x254], ebx
jne 0x49e05d
test eax, eax
jne 0x49e05d
cmp dword [esp + 0x25c], 0xfffffc19
jne 0x49e05d
cmp edx, 0xfffffc19
jne 0x49e05d
pop edi
pop esi
pop ebp
mov eax, 0xfffffecc
pop ebx
add esp, 0x23c
ret
mov ecx, dword [esp + 0x264]
test ecx, 0xe20f5a6f
je 0x49e07c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x23c
ret
test ebp, ebp
je 0x49ef1e
test eax, eax
je 0x49ef1e
mov ebx, dword [esp + 0x268]
test ebx, ebx
jne 0x49e09f
test edi, edi
jg 0x49ef1e
test edi, edi
jns 0x49e0b3
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x25c]
test eax, eax
jns 0x49e0ce
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0x23c
ret
test edx, edx
js 0x49ef0e
cmp edx, eax
jg 0x49ef0e
mov eax, dword [ebp]
cmp eax, 0x50435245
je 0x49e102
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 0x49e118
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 0x49e147
mov eax, 2
jmp 0x49e14f
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xe0], eax
test edx, edx
je 0x49e1f3
test ecx, 0x2000
jne 0x49e1f3
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x260]
push dword [esp + 0x260]
call fcn.0050a7d0
add esp, 0xc
test eax, eax
je 0x49e1bf
cmp edi, 2
jl 0x49e197
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
cmp eax, 5
jg 0x49e1af
cmp dword [esp + 0xe0], 1
mov eax, 0xffffffe7
jg 0x49ef23
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 0x260]
test eax, eax
jle 0x49e1f3
cmp eax, dword [esp + 0x25c]
jge 0x49e1f3
mov ecx, dword [esp + 0x258]
mov al, byte [ecx + eax]
and al, 0xc0
cmp al, 0x80
jne 0x49e1f3
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 0x49e288
mov ecx, dword [eax]
test cl, 1
je 0x49e252
mov esi, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
test cl, 2
je 0x49e25e
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
test cl, 0x10
je 0x49e26a
mov edi, dword [eax + 0x14]
mov dword [esp + 0x60], edi
test cl, 4
je 0x49e280
mov eax, dword [eax + 0xc]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x254]
test cl, 8
je 0x49e288
mov ebp, dword [eax + 0x10]
mov eax, dword [esp + 0x250]
mov ecx, dword [eax + 0xc]
test ecx, 0x2000
je 0x49e2ac
mov eax, dword [eax + 0x10]
cmp eax, edx
jae 0x49e2a5
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x250]
test ecx, 0x4000
je 0x49e2bf
mov eax, dword [eax + 0x14]
cmp eax, edi
jae 0x49e2bf
mov dword [esp + 0x60], eax
test ebp, ebp
jne 0x49e2c8
mov ebp, 0x55c600
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 0x49e4aa
cmp eax, 0x800000
je 0x49e49d
cmp eax, 0x1000000
jne 0x49e52a
mov dword [esp + 0xc0], 0
test ebp, 0x700000
je 0x49e463
mov ecx, ebp
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x49e51a
je 0x49e4fd
test ecx, ecx
je 0x49e4e0
cmp ecx, 0x100000
je 0x49e4c3
cmp ecx, 0x200000
jne 0x49e52a
mov dword [esp + 0x70], 0
jmp 0x49e4e6
mov dword [esp + 0xc0], 1
jmp 0x49e459
test ecx, 0x1800000
je 0x49e44e
mov eax, ecx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xc0], eax
jmp 0x49e459
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 0x49e54a
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 0x49e54a
mov ecx, 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov word [esp + 0x8c], 0xa0d
jmp 0x49e54a
cmp ecx, 0x400000
je 0x49e541
cmp ecx, 0x500000
je 0x49e53a
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0x23c
ret
mov ecx, 2
jmp 0x49e546
mov ecx, 1
mov dword [esp + 0x70], ecx
cmp dword [esp + 0xe0], 0
je 0x49e56c
test edx, 0x200
je 0x49e56c
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 0x49e5f5
mov ecx, eax
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49e5f5
inc ecx
lea ebp, [ecx + ecx*2]
lea eax, [ebp*4]
push eax
call dword [0xd912f8]
mov edi, eax
add esp, 4
mov dword [esp + 0x64], edi
test edi, edi
jne 0x49e5e0
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 0x49e606
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 0x49e6a7
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 0x49e658
mov edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49e678
nop
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49e660
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x26c]
test eax, eax
jle 0x49e694
mov dword [edi], 0xffffffff
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x64]
cmp eax, 1
jle 0x49e6a7
mov dword [edi + 4], 0xffffffff
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x250]
jne 0x49e705
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x49e6e9
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 0x49e705
mov eax, dword [esp + 0x94]
movzx ecx, ch
mov ch, byte [ecx + eax]
mov byte [esp + 0x10], ch
jmp 0x49e705
cmp dword [esp + 0x40], 0
jne 0x49e705
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x49e705
test byte [eax + 4], 1
je 0x49e705
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x49e736
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 0x49e736
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 0x49e873
cmp dword [esp + 0x34], 0
mov edi, esi
je 0x49e7ef
cmp esi, ebx
jae 0x49e873
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e7a0
cmp edi, ebx
jae 0x49e794
push dword [esp + 0x1c]
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a440
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49e794
mov eax, 1
jmp 0x49e796
xor eax, eax
test eax, eax
jne 0x49e86c
jmp 0x49e7d0
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x49e7d0
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49e7d0
cmp ecx, 1
je 0x49e86c
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49e86c
inc edi
cmp edi, ebp
jae 0x49e7e2
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49e7e2
inc edi
cmp edi, ebp
jb 0x49e7d5
cmp edi, ebx
jb 0x49e762
jmp 0x49e86c
cmp esi, ebx
jae 0x49e873
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x1c]
nop
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e83b
cmp edi, ebx
jae 0x49e833
push ebp
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
push edi
call fcn.0050a440
mov ebx, dword [esp + 0xe4]
add esp, 0x14
mov esi, dword [esp + 0x74]
test eax, eax
je 0x49e833
mov eax, 1
jmp 0x49e835
xor eax, eax
test eax, eax
jne 0x49e864
jmp 0x49e85f
mov eax, ebx
sub eax, esi
cmp edi, eax
ja 0x49e85f
mov al, byte [edi]
cmp al, byte [esp + 0x8c]
jne 0x49e85f
cmp esi, 1
je 0x49e864
mov al, byte [edi + 1]
cmp al, byte [esp + 0x8d]
je 0x49e864
inc edi
cmp edi, ebx
jb 0x49e800
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 0x49ea60
test ebx, ebx
je 0x49e8d2
cmp esi, edi
jae 0x49ea60
mov cl, byte [esp + 0x12]
mov dl, byte [esp + 0x10]
cmp cl, dl
je 0x49e8c0
mov al, byte [esi]
cmp al, cl
je 0x49ea60
cmp al, dl
je 0x49ea60
inc esi
cmp esi, edi
jb 0x49e8a4
jmp 0x49ea60
cmp byte [esi], cl
je 0x49ea60
inc esi
cmp esi, edi
jb 0x49e8c0
jmp 0x49ea60
cmp dword [esp + 0x40], 0
je 0x49ea2b
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0xcc]
add eax, ecx
cmp esi, eax
jbe 0x49ea60
cmp esi, edi
jae 0x49ea0b
cmp dword [esp + 0x34], 0
je 0x49e998
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e93f
cmp esi, ecx
jbe 0x49e933
push dword [esp + 0x1c]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a5d0
add esp, 0x14
test eax, eax
je 0x49e933
mov eax, 1
jmp 0x49e935
xor eax, eax
test eax, eax
jne 0x49ea0b
jmp 0x49e972
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49e979
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49e972
cmp edx, 1
je 0x49ea0b
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49ea0b
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jae 0x49ea0b
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x49e908
inc esi
cmp esi, edi
jb 0x49e982
jmp 0x49ea0b
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x49e9d0
cmp esi, ecx
jbe 0x49e9c8
push ebp
lea edx, [esp + 0x78]
push edx
push ecx
push eax
push esi
call fcn.0050a5d0
add esp, 0x14
test eax, eax
je 0x49e9c8
mov eax, 1
jmp 0x49e9ca
xor eax, eax
test eax, eax
jne 0x49ea07
jmp 0x49e9fb
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx]
cmp esi, eax
jb 0x49ea02
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0x8c]
jne 0x49e9fb
cmp edx, 1
je 0x49ea07
mov al, byte [ecx + 1]
cmp al, byte [esp + 0x8d]
je 0x49ea07
mov ecx, dword [esp + 0xcc]
inc esi
cmp esi, edi
jb 0x49e9a0
mov ebp, dword [esp + 0x14]
cmp byte [esi - 1], 0xd
jne 0x49ea60
mov eax, dword [esp + 0x70]
cmp eax, 1
je 0x49ea1f
cmp eax, 2
jne 0x49ea60
cmp esi, edi
jae 0x49ea60
cmp byte [esi], 0xa
jne 0x49ea60
inc esi
jmp 0x49ea60
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x49ea5c
cmp esi, edi
jae 0x49ea5c
jmp 0x49ea40
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 0x49ea5c
inc esi
cmp esi, edi
jb 0x49ea40
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x250]
mov eax, dword [edi + 8]
or eax, dword [esp + 0x264]
test eax, 0x4000000
jne 0x49eb0c
cmp dword [esp + 0xe0], 0
jne 0x49eb0c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49eaa1
test byte [ecx + 4], 2
je 0x49eaa1
mov eax, ebp
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x49eb9a.996
cmp dword [esp + 0x48], 0
je 0x49eb0c
mov eax, ebp
sub eax, esi
cmp eax, 0x3e8
jge 0x49eb0c
lea ecx, [ebx + esi]
cmp ecx, dword [esp + 0x30]
jbe 0x49eb0c
cmp ecx, ebp
jae case.0x49eb9a.996
mov bl, byte [esp + 0x13]
mov ah, byte [esp + 0x11]
cmp bl, ah
je 0x49eaf0
lea esp, [esp]
mov al, byte [ecx]
mov edx, ecx
inc ecx
mov dword [esp + 0x30], edx
cmp al, bl
je 0x49eb08
cmp al, ah
je 0x49eb08
cmp ecx, ebp
jb 0x49ead0
xor ebp, ebp
jmp 0x49ecfb
mov al, byte [ecx]
mov edx, ecx
mov dword [esp + 0x30], ecx
inc ecx
cmp al, bl
je 0x49eb08
cmp ecx, ebp
jb 0x49eaf0
xor ebp, ebp
jmp 0x49ecfb
cmp edx, ebp
jae case.0x49eb9a.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.0049f290
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xbc], 0
je 0x49eb81
cmp dword [esp + 0x38], 0
jne 0x49eb81
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], esi
test ebp, ebp
jg 0x49ece6
je case.0x49eb9a.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x49eb9a
jmp dword [eax*4 + 0x49ef30]
mov eax, dword [esp + 0x80]
mov edi, esi
mov dword [esp + 0x84], eax
jmp 0x49ebed
mov edi, dword [esp + 0xd4]
cmp edi, esi
ja 0x49ebed
cmp dword [esp + 0x34], 0
lea edi, [esi + 1]
mov dword [esp + 0x84], 0
je 0x49ebed
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jae 0x49ebed
jmp 0x49ebe0
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x49ebed
inc edi
cmp edi, ecx
jb 0x49ebe0
mov edx, dword [esp + 0x70]
xor ebp, ebp
mov ebx, dword [esp + 0xd0]
cmp dword [esp + 0x4c], ebp
je 0x49ec3e
test edx, edx
je 0x49ecb5
cmp esi, ebx
jae 0x49ec30
push dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
push ebx
push edx
push esi
call fcn.0050a440
mov ebx, dword [esp + 0xe4]
add esp, 0x14
test eax, eax
je 0x49ec30
lea eax, [ebp + 1]
jmp 0x49ec32
xor eax, eax
test eax, eax
jne 0x49ecfb
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, edi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x50], ebp
jne 0x49ecfb
cmp edi, dword [esp + 0x14]
ja 0x49ecfb
mov ebp, dword [esp + 0x14]
cmp edi, dword [esp + 0x114]
jbe 0x49ec9e
cmp byte [edi - 1], 0xd
jne 0x49ec9e
cmp edi, ebp
jae 0x49ec9e
cmp byte [edi], 0xa
jne 0x49ec9e
mov eax, dword [esp + 0x250]
test dword [eax + 0xc], 0x800
jne 0x49ec9e
cmp edx, 1
je 0x49ec97
cmp edx, 2
je 0x49ec97
cmp ecx, 2
jne 0x49ec9e
lea esi, [edi + 1]
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x250]
mov dword [esp + 0x104], 0
jmp 0x49e740
mov ecx, dword [esp + 0x74]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x49ec42
mov al, byte [esi]
cmp al, byte [esp + 0x8c]
jne 0x49ec42
cmp ecx, 1
je 0x49ecfb
mov al, byte [esi + 1]
cmp al, byte [esp + 0x8d]
je 0x49ecfb
jmp 0x49ec42
cmp ebp, 1
je 0x49edde
cmp ebp, 0xfffffc19
je 0x49edde
cmp dword [esp + 0x3c], 0
je 0x49ed0f
push dword [esp + 0x64]
call dword [0xd912fc]
add esp, 4
test ebp, ebp
je 0x49ed41
cmp ebp, 0xfffffff4
je 0x49ed41
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49ed34
push esi
mov esi, dword [esi + 4]
call dword [0xd91304]
add esp, 4
test esi, esi
jne 0x49ed23
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x23c
ret
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49ed91
mov ecx, dword [esp + 0x26c]
mov dword [esp + 0x104], 0
cmp ecx, 1
jle 0x49ed8a
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 0x49ed8a
sub ebp, edx
mov dword [eax + 8], ebp
mov edi, 0xfffffff4
jmp 0x49ed94
or edi, 0xffffffff
mov ecx, dword [esp + 0x254]
test ecx, ecx
je 0x49edb0
test byte [ecx], 0x20
je 0x49edb0
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x108]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49edd1
jmp 0x49edc0
push esi
mov esi, dword [esi + 4]
call dword [0xd91304]
add esp, 4
test esi, esi
jne 0x49edc0
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 0x49ee2f
mov esi, dword [esp + 0x64]
cmp ebx, 4
jl 0x49ee11
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.004adc20
add esp, 0xc
cmp dword [esp + 0xe4], ebx
jle 0x49ee25
or dword [esp + 0xe8], 0x10000
push esi
call dword [0xd912fc]
add esp, 4
test dword [esp + 0xe8], 0x10000
mov esi, dword [esp + 0xe4]
je 0x49ee4b
cmp esi, ebx
jl 0x49ee4b
xor ebx, ebx
jmp 0x49ee54
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 0x49ee98
test edx, edx
je 0x49ee98
lea eax, [ecx*2 + 2]
mov ecx, dword [esp + 0x26c]
cmp eax, ecx
jle 0x49ee82
mov eax, ecx
lea ecx, [edx + eax*4]
lea edi, [edx + esi*4]
cmp edi, ecx
jae 0x49ee98
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 0x49eea6
xor ebx, ebx
jmp 0x49eec7
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 0x49eee3
test byte [ecx], 0x20
je 0x49eee3
mov ecx, dword [ecx + 0x18]
mov eax, dword [esp + 0x104]
mov dword [ecx], eax
mov esi, dword [esp + 0x11c]
test esi, esi
je 0x49ef01
mov edi, edi
push esi
mov esi, dword [esi + 4]
call dword [0xd91304]
add esp, 4
test esi, esi
jne 0x49eef0
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